(()=>{var e={139:e=>{"use strict";function t(e){return function(){return e}}var s=function(){};s.thatReturns=t,s.thatReturnsFalse=t(!1),s.thatReturnsTrue=t(!0),s.thatReturnsNull=t(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(e){return e},e.exports=s},3759:e=>{"use strict";e.exports=function(e,t,s,n,a,r,o,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[s,n,a,r,o,i],d=0;(l=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},3620:(e,t,s)=>{"use strict";var n=s(139);e.exports=n},6746:(e,t,s)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(s(9196)),r=i(s(9156)),o=i(s(6743));function i(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function c(e,t){var s,o,i,d,u,p,m,h,g=[],f={};for(p=0;p<e.length;p++)if("string"!==(u=e[p]).type){if(!t.hasOwnProperty(u.value)||void 0===t[u.value])throw new Error("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==n(t[u.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+l);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){s=t[u.value],i=p;break}g.push(t[u.value])}else g.push(u.value);return s&&(d=function(e,t){var s,n,a=t[e],r=0;for(n=e+1;n<t.length;n++)if((s=t[n]).value===a.value){if("componentOpen"===s.type){r++;continue}if("componentClose"===s.type){if(0===r)return n;r--}}throw new Error("Missing closing component token `"+a.value+"`")}(i,e),m=c(e.slice(i+1,d),t),o=a.default.cloneElement(s,{},m),g.push(o),d<e.length-1&&(h=c(e.slice(d+1),t),g=g.concat(h))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(f["interpolation-child-"+t]=e)})),(0,r.default)(f))}t.Z=function(e){var t=e.mixedString,s=e.components,a=e.throwErrors;if(l=t,!s)return t;if("object"!==(void 0===s?"undefined":n(s))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var r=(0,o.default)(t);try{return c(r,s)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},6743:e=>{"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},9156:(e,t,s)=>{"use strict";var n=s(9196),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=s(139),o=s(3759),i=s(3620),l=".",c=":",d="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";function p(e,t){return e&&"object"==typeof e&&null!=e.key?(s=e.key,n={"=":"=0",":":"=2"},"$"+(""+s).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var s,n}function m(e,t,s,n){var r,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===a)return s(n,e,""===t?l+p(e,0):t),1;var h=0,g=""===t?l:t+c;if(Array.isArray(e))for(var f=0;f<e.length;f++)h+=m(r=e[f],g+p(r,f),s,n);else{var y=function(e){var t=e&&(d&&e[d]||e[u]);if("function"==typeof t)return t}(e);if(y)for(var w,b=y.call(e),E=0;!(w=b.next()).done;)h+=m(r=w.value,g+p(r,E++),s,n);else if("object"===i){var v=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return h}var h=/\/+/g;function g(e){return(""+e).replace(h,"$&/")}var f,y,w=b,b=function(e){var t=this;if(t.instancePool.length){var s=t.instancePool.pop();return t.call(s,e),s}return new t(e)};function E(e,t,s,n){this.result=e,this.keyPrefix=t,this.func=s,this.context=n,this.count=0}function v(e,t,s){var a,o,i=e.result,l=e.keyPrefix,c=e.func,d=e.context,u=c.call(d,t,e.count++);Array.isArray(u)?k(u,i,s,r.thatReturnsArgument):null!=u&&(n.isValidElement(u)&&(a=u,o=l+(!u.key||t&&t.key===u.key?"":g(u.key)+"/")+s,u=n.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),i.push(u))}function k(e,t,s,n,a){var r="";null!=s&&(r=g(s)+"/");var o=E.getPooled(t,r,n,a);!function(e,t,s){null==e||m(e,"",t,s)}(e,v,o),E.release(o)}E.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(e,t,s,n){var a=this;if(a.instancePool.length){var r=a.instancePool.pop();return a.call(r,e,t,s,n),r}return new a(e,t,s,n)},(y=E).instancePool=[],y.getPooled=f||w,y.poolSize||(y.poolSize=10),y.release=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(n.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var s in e)k(e[s],t,s,r.thatReturnsArgument);return t}},4530:(e,t)=>{var s;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var o=a.apply(null,s);o&&e.push(o)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)n.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(s=function(){return a}.apply(t,[]))||(e.exports=s)}()},9196:e=>{"use strict";e.exports=window.React}},t={};function s(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=s(9196),t=s.n(e);const n=window.wp.element,a=window.wp.components,r=window.yoast.propTypes;var o=s.n(r);const i=window.lodash,l=window.yoast.styledComponents;var c=s.n(l);const d=window.yoast.externals.contexts,u=({theme:t,location:s,children:n})=>(0,e.createElement)(d.LocationProvider,{value:s},(0,e.createElement)(l.ThemeProvider,{theme:t},n));u.propTypes={theme:o().object.isRequired,location:o().oneOf(["sidebar","metabox","modal"]).isRequired,children:o().element.isRequired};const p=u;function m({theme:t}){return(0,e.createElement)(p,{theme:t,location:"metabox"},(0,e.createElement)(a.Slot,{name:"YoastMetabox"},(e=>{return void 0===(t=e).length?t:(0,i.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t})))}const h=window.wp.data,g=window.wp.compose,f=window.wp.i18n,y=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))}));var w=s(4530),b=s.n(w);const E=({className:t,...s})=>(0,e.createElement)("span",{className:b()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-left",t),...s});E.displayName="MetaboxButton.Text",E.propTypes={className:o().string},E.defaultProps={className:""};const v=({className:t,...s})=>(0,e.createElement)("button",{type:"button",className:b()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pr-4 yst-pl-6 yst-space-x-2 yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0] focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",t),...s});v.propTypes={className:o().string},v.defaultProps={className:""},v.Text=E;const k=window.yoast.componentsNew,_=window.yoast.helpers,T=c().div`
	min-width: 600px;

	@media screen and ( max-width: 680px ) {
		min-width: 0;
		width: 86vw;
	}
`,x=c().div`
	@media screen and ( min-width: 600px ) {
		max-width: 420px;
	}
`,S=(c()(k.Icon)`
	float: ${(0,_.getDirectionalStyle)("right","left")};
	margin: ${(0,_.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")};

	&& {
		width: 150px;
		height: 150px;

		@media screen and ( max-width: 680px ) {
			width: 80px;
			height: 80px;
		}
	}
`,"yoast yoast-gutenberg-modal"),C=t=>{const{title:s,className:n,showYoastIcon:r,additionalClassName:o,...i}=t,l=r?(0,e.createElement)("span",{className:"yoast-icon"}):null;return(0,e.createElement)(a.Modal,{title:s,className:`${n} ${o}`,icon:l,...i},t.children)};C.propTypes={title:o().string,className:o().string,showYoastIcon:o().bool,children:o().oneOfType([o().node,o().arrayOf(o().node)]),additionalClassName:o().string},C.defaultProps={title:"Yoast SEO",className:S,showYoastIcon:!0,children:null,additionalClassName:""};const R=C;var I,L;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},P.apply(this,arguments)}const A=t=>e.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},t),I||(I=e.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),L||(L=e.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),M=t=>(0,e.createElement)("div",{className:"yoast components-panel__body"},(0,e.createElement)("h2",{className:"components-panel__body-title"},(0,e.createElement)("button",{id:t.id,onClick:t.onClick,className:"components-button components-panel__body-toggle",type:"button"},t.prefixIcon&&(0,e.createElement)("span",{className:"yoast-icon-span",style:{fill:`${t.prefixIcon&&t.prefixIcon.color||""}`}},(0,e.createElement)(k.SvgIcon,{size:t.prefixIcon.size,icon:t.prefixIcon.icon})),(0,e.createElement)("span",{className:"yoast-title-container"},(0,e.createElement)("div",{className:"yoast-title"},t.title),(0,e.createElement)("div",{className:"yoast-subtitle"},t.subTitle)),t.children,t.suffixIcon&&(0,e.createElement)(k.SvgIcon,{size:t.suffixIcon.size,icon:t.suffixIcon.icon}),t.SuffixHeroIcon))),F=M;M.propTypes={onClick:o().func.isRequired,title:o().string.isRequired,id:o().string,subTitle:o().string,suffixIcon:o().object,SuffixHeroIcon:o().object,prefixIcon:o().object,children:o().node},M.defaultProps={id:"",suffixIcon:null,SuffixHeroIcon:null,prefixIcon:null,subTitle:"",children:null};const q=e=>{let t=!0;if("blur"===(null==e?void 0:e.type)){const{relatedTarget:s}=e;if(s){const e=["media-modal","wp-core-ui"];t=(0,i.intersection)(e,Array.from(s.classList)).length!==e.length}}return t},D=({id:t,postTypeName:s,children:a,title:r,isOpen:o,close:i,open:l,shouldCloseOnClickOutside:c,showChangesWarning:u,SuffixHeroIcon:p})=>{const m=(0,n.useCallback)((e=>{q(e)&&i()}),[i]);return(0,e.createElement)(n.Fragment,null,o&&(0,e.createElement)(d.LocationProvider,{value:"modal"},(0,e.createElement)(R,{title:r,onRequestClose:m,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:c},(0,e.createElement)("div",{className:"yoast-content-container"},(0,e.createElement)("div",{className:"yoast-modal-content"},a)),(0,e.createElement)("div",{className:"yoast-notice-container"},(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"yoast-button-container"},u&&(0,e.createElement)("p",null,/* Translators: %s translates to the Post Label in singular form */
(0,f.sprintf)((0,f.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),s)),(0,e.createElement)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:m},/* Translators: %s translates to the Post Label in singular form */
(0,f.sprintf)((0,f.__)("Return to your %s","wordpress-seo"),s)))))),(0,e.createElement)(F,{id:t+"-open-button",title:r,SuffixHeroIcon:p,suffixIcon:p?null:{size:"20px",icon:"pencil-square"},onClick:l}))};D.propTypes={id:o().string.isRequired,postTypeName:o().string.isRequired,children:o().oneOfType([o().node,o().arrayOf(o().node)]).isRequired,title:o().string.isRequired,isOpen:o().bool.isRequired,open:o().func.isRequired,close:o().func.isRequired,shouldCloseOnClickOutside:o().bool,showChangesWarning:o().bool,SuffixHeroIcon:o().object},D.defaultProps={shouldCloseOnClickOutside:!0,showChangesWarning:!0};const O=window.moment;var N=s.n(O),$=s(6746);const W=(0,_.makeOutboundLink)(),B=t=>{const s=(0,f.sprintf)(/* translators: %d expands to the amount of allowed keyphrases on a free account, %s expands to a link to Wincher plans. */
(0,f.__)("You've reached the maximum amount of %d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %s.","wordpress-seo"),t.limit,"{{updateWincherPlanLink/}}");return(0,e.createElement)(k.Alert,{type:"error"},(0,$.Z)({mixedString:s,components:{updateWincherPlanLink:(0,e.createElement)(W,{href:wpseoAdminGlobalL10n["links.wincher.pricing"]},(0,f.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,f.__)("upgrade your %s plan","wordpress-seo"),"Wincher"))}}))};B.propTypes={limit:o().number},B.defaultProps={limit:10};const U=B,z=()=>(0,e.createElement)(k.Alert,{type:"error"},(0,f.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")),K=window.yoast.styleGuide,H=window.wp.apiFetch;var Y=s.n(H);async function j(e,t,s,n=200){try{const a=await e();return!!a&&(a.status===n?t(a):s(a))}catch(e){console.error(e.message)}}async function V(e){try{return await Y()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function Z(e){return(0,i.isArray)(e)||(e=[e]),await V({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const G=c().p`
	color: ${K.colors.$color_pink_dark};
	font-size: 14px;
	font-weight: 700;
	margin: 13px 0 10px;
`,Q=c()(k.SvgIcon)`
	margin-right: 5px;
	vertical-align: middle;
`,X=c().button`
	position: absolute;
	top: 9px;
	right: 9px;
	border: none;
    background: none;
    cursor: pointer;
`,J=c().p`
	font-size: 13px;
	font-weight: 500;
	margin: 10px 0 13px;
`,ee=c().div`
	position: relative;
	background: ${e=>e.isTitleShortened?"#F5F7F7":"transparent"};
	border: 1px solid #C7C7C7;
	border-left: 4px solid${K.colors.$color_pink_dark};
	padding: 0 16px;
	margin-bottom: 1.5em;
`,te=e=>{const[t,s]=(0,n.useState)(null);return(0,n.useEffect)((()=>{e&&!t&&async function(){return await V({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>s(e)))}),[t]),t};te.propTypes={limit:o().bool.isRequired};const se=({limit:t,usage:s,isTitleShortened:n,isFreeAccount:a})=>{const r=(0,f.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,f.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),s,t),o=(0,f.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,f.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),s,t),i=a?r:o,l=(0,f.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,f.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),s,t),c=n?l:i;return(0,e.createElement)(G,null,n&&(0,e.createElement)(Q,{icon:"exclamation-triangle",color:K.colors.$color_pink_dark,size:"14px"}),c)};se.propTypes={limit:o().number.isRequired,usage:o().number.isRequired,isTitleShortened:o().bool,isFreeAccount:o().bool};const ne=(0,_.makeOutboundLink)(),ae=({discount:t,months:s})=>{const n=(0,e.createElement)(ne,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600}},(0,f.sprintf)(/* Translators: %s : Expands to "Wincher". */
(0,f.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher"));if(!t||!s)return(0,e.createElement)(J,null,n);const a=100*t,r=(0,f.sprintf)(
/* Translators: %1$s expands to upgrade account link.
   * %2$s expands to the upgrade discount value.
   * %3$s expands to the upgrade discount duration e.g. 2 months.
   */
(0,f.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"{{wincherAccountUpgradeLink/}}",a+"%",s);return(0,e.createElement)(J,null,(0,$.Z)({mixedString:r,components:{wincherAccountUpgradeLink:n}}))};ae.propTypes={discount:o().number,months:o().number};const re=({onClose:t,isTitleShortened:s,trackingInfo:a})=>{const r=(()=>{const[e,t]=(0,n.useState)(null);return(0,n.useEffect)((()=>{e||async function(){return await V({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===a)return null;const{limit:o,usage:i}=a;if(!(o&&i/o>=.8))return null;const l=Boolean(null==r?void 0:r.discount);return(0,e.createElement)(ee,{isTitleShortened:s},t&&(0,e.createElement)(X,{type:"button","aria-label":(0,f.__)("Close the upgrade callout","wordpress-seo"),onClick:t},(0,e.createElement)(k.SvgIcon,{icon:"times-circle",color:K.colors.$color_pink_dark,size:"14px"})),(0,e.createElement)(se,{...a,isTitleShortened:s,isFreeAccount:l}),(0,e.createElement)(ae,{discount:null==r?void 0:r.discount,months:null==r?void 0:r.months}))};re.propTypes={onClose:o().func,isTitleShortened:o().bool,trackingInfo:o().object};const oe=re,ie=()=>(0,e.createElement)(k.Alert,{type:"success"},(0,f.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,f.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")),le=()=>(0,e.createElement)(k.Alert,{type:"info"},(0,f.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,f.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher")),ce=({data:t,mapChartDataToTableData:s,dataTableCaption:n,dataTableHeaderLabels:a,isDataTableVisuallyHidden:r})=>t.length!==a.length?(0,e.createElement)("p",null,(0,f.__)("The number of headers and header labels don't match.","wordpress-seo")):(0,e.createElement)("div",{className:r?"screen-reader-text":null},(0,e.createElement)("table",null,(0,e.createElement)("caption",null,n),(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,a.map(((t,s)=>(0,e.createElement)("th",{key:s},t))))),(0,e.createElement)("tbody",null,(0,e.createElement)("tr",null,t.map(((t,n)=>(0,e.createElement)("td",{key:n},s(t.y))))))));ce.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool},ce.defaultProps={mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const de=ce,ue=({data:t,width:s,height:a,fillColor:r,strokeColor:o,strokeWidth:i,className:l,mapChartDataToTableData:c,dataTableCaption:d,dataTableHeaderLabels:u,isDataTableVisuallyHidden:p})=>{const m=Math.max(1,Math.max(...t.map((e=>e.x)))),h=Math.max(1,Math.max(...t.map((e=>e.y)))),g=a-i,f=t.map((e=>`${e.x/m*s},${g-e.y/h*g+i}`)).join(" "),y=`0,${g+i} `+f+` ${s},${g+i}`;return(0,e.createElement)(n.Fragment,null,(0,e.createElement)("svg",{width:s,height:a,viewBox:`0 0 ${s} ${a}`,className:l,role:"img","aria-hidden":"true",focusable:"false"},(0,e.createElement)("polygon",{fill:r,points:y}),(0,e.createElement)("polyline",{fill:"none",stroke:o,strokeWidth:i,strokeLinejoin:"round",strokeLinecap:"round",points:f})),c&&(0,e.createElement)(de,{data:t,mapChartDataToTableData:c,dataTableCaption:d,dataTableHeaderLabels:u,isDataTableVisuallyHidden:p}))};ue.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,width:o().number.isRequired,height:o().number.isRequired,fillColor:o().string,strokeColor:o().string,strokeWidth:o().number,className:o().string,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool},ue.defaultProps={fillColor:null,strokeColor:"#000000",strokeWidth:1,className:"",mapChartDataToTableData:null,isDataTableVisuallyHidden:!0};const pe=ue,me=()=>(0,e.createElement)("p",{className:"yoast-wincher-seo-performance-modal__loading-message"},(0,f.__)("Tracking the ranking position...","wordpress-seo")," ",(0,e.createElement)(k.SvgIcon,{icon:"loading-spinner"})),he=c()(k.SvgIcon)`
	margin-left: 2px;
	flex-shrink: 0;
	rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,ge=c().span`
	color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 2px;
	margin-left: 12px;
`,fe=c().td`
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,ye=c().td`
	padding-left: 2px !important;
`,we=c().td.attrs({className:"yoast-table--nopadding"})`
	& > div {
		justify-content: center;
	}
`,be=c().div`
	display: flex;
	align-items: center;
	& > a {
		box-sizing: border-box;
	}
`,Ee=c().button`
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
    display: flex;
    align-items: center;
`,ve=c().tr`
	background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
`;function ke(e){return Math.round(100*e)}function _e({chartData:t}){if((0,i.isEmpty)(t)||(0,i.isEmpty)(t.position))return"?";const s=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,f.sprintf)((0,f._n)("%d day","%d days",e,"wordpress-seo"),e)))}(t),n=t.position.history.map(((e,t)=>({x:t,y:101-e.value})));return(0,e.createElement)(pe,{width:66,height:24,data:n,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:ke,dataTableCaption:(0,f.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:s})}_e.propTypes={chartData:o().object},_e.defaultProps={chartData:{}};const Te=({rowData:t})=>{var s;if(null==t||null===(s=t.position)||void 0===s||!s.change)return(0,e.createElement)(_e,{chartData:t});const a=t.position.change<0;return(0,e.createElement)(n.Fragment,null,(0,e.createElement)(_e,{chartData:t}),(0,e.createElement)(ge,{isImproving:a},Math.abs(t.position.change)),(0,e.createElement)(he,{icon:"caret-right",color:a?"#69AB56":"#DC3332",size:"14px",isImproving:a}))};function xe(t){var s;const{keyphrase:a,rowData:r,onTrackKeyphrase:o,onUntrackKeyphrase:l,isFocusKeyphrase:c,isDisabled:d,isLoading:u,isSelected:p,onSelectKeyphrases:m}=t,h=!(0,i.isEmpty)(r),g=!(0,i.isEmpty)(null==r||null===(s=r.position)||void 0===s?void 0:s.history),y=(0,n.useCallback)((()=>{d||(h?l(a,r.id):o(a))}),[a,o,l,h,r,d]),w=(0,n.useCallback)((()=>{m((e=>p?e.filter((e=>e!==a)):e.concat(a)))}),[m,p,a]);return(0,e.createElement)(ve,{isEnabled:h},(0,e.createElement)(fe,null,g&&(0,e.createElement)(k.Checkbox,{id:"select-"+a,onChange:w,checked:p,label:""})),(0,e.createElement)(ye,null,a,c&&(0,e.createElement)("span",null,"*")),function(t){const{rowData:s,websiteId:a,keyphrase:r,onSelectKeyphrases:o}=t,l=(0,n.useCallback)((()=>{o([r])}),[o,r]),c=!(0,i.isEmpty)(s),d=s&&s.updated_at&&N()(s.updated_at)>=N()().subtract(7,"days"),u=s?(0,f.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",a,s.id):null;return c?d?(0,e.createElement)(n.Fragment,null,(0,e.createElement)("td",null,(0,e.createElement)(be,null,function(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}(s),(0,e.createElement)(k.ButtonStyledLink,{variant:"secondary",href:u,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},(0,f.__)("View","wordpress-seo")))),(0,e.createElement)("td",{className:"yoast-table--nopadding"},(0,e.createElement)(Ee,{type:"button",onClick:l},(0,e.createElement)(Te,{rowData:s}))),(0,e.createElement)("td",null,(p=s.updated_at,N()(p).fromNow()))):(0,e.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,e.createElement)(me,null)):(0,e.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,e.createElement)("i",null,(0,f.__)("Activate tracking to show the ranking position","wordpress-seo")));var p}(t),(0,e.createElement)(we,null,function({keyphrase:t,isEnabled:s,toggleAction:n,isLoading:a}){return a?(0,e.createElement)(k.SvgIcon,{icon:"loading-spinner"}):(0,e.createElement)(k.Toggle,{id:`toggle-keyphrase-tracking-${t}`,className:"wincher-toggle",isEnabled:s,onSetToggleState:n,showToggleStateLabel:!1})}({keyphrase:a,isEnabled:h,toggleAction:y,isLoading:u})))}Te.propTypes={rowData:o().object},xe.propTypes={rowData:o().object,keyphrase:o().string.isRequired,onTrackKeyphrase:o().func,onUntrackKeyphrase:o().func,isFocusKeyphrase:o().bool,isDisabled:o().bool,isLoading:o().bool,websiteId:o().string,isSelected:o().bool.isRequired,onSelectKeyphrases:o().func.isRequired},xe.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""};const Se=(0,_.makeOutboundLink)(),Ce=c().span`
	display: block;
	font-style: italic;

	@media (min-width: 782px) {
		display: inline;
		position: absolute;
		${(0,_.getDirectionalStyle)("right","left")}: 8px;
	}
`,Re=c().div`
	width: 100%;
	overflow-y: auto;
`,Ie=c().th`
	pointer-events: ${e=>e.isDisabled?"none":"initial"};
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,Le=c().th`
	padding-left: 2px !important;
`,Pe=e=>{const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current},Ae=(0,i.debounce)((async function(e=null,t=null,s=null,n){return await V({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:n})}),500,{leading:!0}),Me=t=>{const{addTrackedKeyphrase:s,isLoggedIn:a,keyphrases:r,permalink:o,removeTrackedKeyphrase:l,setKeyphraseLimitReached:c,setRequestFailed:d,setRequestSucceeded:u,setTrackedKeyphrases:p,setHasTrackedAll:m,trackAll:h,trackedKeyphrases:g,isNewlyAuthenticated:y,websiteId:w,focusKeyphrase:b,newRequest:E,startAt:v,selectedKeyphrases:_,onSelectKeyphrases:T}=t,x=(0,n.useRef)(),S=(0,n.useRef)(),C=(0,n.useRef)(!1),[R,I]=(0,n.useState)([]),L=(0,n.useCallback)((e=>{const t=e.toLowerCase();return g&&!(0,i.isEmpty)(g)&&g.hasOwnProperty(t)?g[t]:null}),[g]),P=(0,n.useMemo)((()=>async()=>{await j((()=>(S.current&&S.current.abort(),S.current="undefined"==typeof AbortController?null:new AbortController,Ae(r,v,o,S.current.signal))),(e=>{u(e),p(e.results)}),(e=>{d(e)}))}),[u,d,p,r,o,v]),A=(0,n.useCallback)((async e=>{const t=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));I((e=>[...e,...t])),await j((()=>Z(t)),(e=>{u(e),s(e.results),P()}),(e=>{400===e.status&&e.limit&&c(e.limit),d(e)}),201),I((e=>(0,i.without)(e,...t)))}),[u,d,c,s,P]),M=(0,n.useCallback)((async(e,t)=>{e=e.toLowerCase(),I((t=>[...t,e])),await j((()=>async function(e){return await V({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{u(t),l(e)}),(e=>{d(e)})),I((t=>(0,i.without)(t,e)))}),[u,l,d]),F=(0,n.useCallback)((async e=>{E(),await A(e)}),[E,A]),q=Pe(o),D=Pe(r),O=Pe(v),N=o&&v;(0,n.useEffect)((()=>{a&&N&&(o!==q||(0,i.difference)(r,D).length||v!==O)&&P()}),[a,o,q,r,D,P,N,v,O]),(0,n.useEffect)((()=>{if(a&&h&&null!==g){const e=r.filter((e=>!L(e)));e.length&&A(e),m()}}),[a,h,g,A,m,L,r]),(0,n.useEffect)((()=>{y&&!C.current&&(P(),C.current=!0)}),[y,P]),(0,n.useEffect)((()=>{if(a&&!(0,i.isEmpty)(g))return(0,i.filter)(g,(e=>(0,i.isEmpty)(e.updated_at))).length>0&&(x.current=setInterval((()=>{P()}),1e4)),()=>{clearInterval(x.current)}}),[a,g,P]);const $=a&&null===g,W=(0,n.useMemo)((()=>(0,i.isEmpty)(g)?[]:Object.values(g).filter((e=>{var t;return!(0,i.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[g]),B=(0,n.useMemo)((()=>_.length>0&&W.length>0&&W.every((e=>_.includes(e)))),[_,W]),U=(0,n.useCallback)((()=>{T(B?[]:W)}),[T,B,W]),z=(0,n.useMemo)((()=>(0,i.orderBy)(r,[e=>Object.values(g||{}).map((e=>e.keyword)).includes(e)],["desc"])),[r,g]);return r&&!(0,i.isEmpty)(r)&&(0,e.createElement)(n.Fragment,null,(0,e.createElement)(Re,null,(0,e.createElement)("table",{className:"yoast yoast-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)(Ie,{isDisabled:0===W.length},(0,e.createElement)(k.Checkbox,{id:"select-all",onChange:U,checked:B,label:""})),(0,e.createElement)(Le,{scope:"col",abbr:(0,f.__)("Keyphrase","wordpress-seo")},(0,f.__)("Keyphrase","wordpress-seo")),(0,e.createElement)("th",{scope:"col",abbr:(0,f.__)("Position","wordpress-seo")},(0,f.__)("Position","wordpress-seo")),(0,e.createElement)("th",{scope:"col",abbr:(0,f.__)("Position over time","wordpress-seo")},(0,f.__)("Position over time","wordpress-seo")),(0,e.createElement)("th",{scope:"col",abbr:(0,f.__)("Last updated","wordpress-seo")},(0,f.__)("Last updated","wordpress-seo")),(0,e.createElement)("th",{scope:"col",abbr:(0,f.__)("Tracking","wordpress-seo")},(0,f.__)("Tracking","wordpress-seo")))),(0,e.createElement)("tbody",null,z.map(((t,s)=>(0,e.createElement)(xe,{key:`trackable-keyphrase-${s}`,keyphrase:t,onTrackKeyphrase:F,onUntrackKeyphrase:M,rowData:L(t),isFocusKeyphrase:t===b.trim().toLowerCase(),websiteId:w,isDisabled:!a,isLoading:$||R.indexOf(t.toLowerCase())>=0,isSelected:_.includes(t),onSelectKeyphrases:T})))))),(0,e.createElement)("p",{style:{marginBottom:0,position:"relative"}},(0,e.createElement)(Se,{href:wpseoAdminGlobalL10n["links.wincher.login"]},(0,f.sprintf)(/* translators: %s expands to Wincher */
(0,f.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),(0,e.createElement)(Ce,null,(0,f.__)("* focus keyphrase","wordpress-seo"))))};Me.propTypes={addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,newRequest:o().func.isRequired,removeTrackedKeyphrase:o().func.isRequired,setRequestFailed:o().func.isRequired,setKeyphraseLimitReached:o().func.isRequired,setRequestSucceeded:o().func.isRequired,setTrackedKeyphrases:o().func.isRequired,setHasTrackedAll:o().func.isRequired,trackAll:o().bool,trackedKeyphrases:o().object,websiteId:o().string,permalink:o().string.isRequired,focusKeyphrase:o().string,startAt:o().string,selectedKeyphrases:o().arrayOf(o().string).isRequired,onSelectKeyphrases:o().func.isRequired},Me.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};const Fe=Me,qe=(0,g.compose)([(0,h.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:n,getWincherPermalink:a,getFocusKeyphrase:r,isWincherNewlyAuthenticated:o,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:n(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:o(),permalink:a()}})),(0,h.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:n,setWincherSetKeyphraseLimitReached:a,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:o,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{n(e)},setKeyphraseLimitReached:e=>{a(e)},addTrackedKeyphrase:e=>{o(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{i(!1)}}}))])(Fe),De=(0,_.makeOutboundLink)(),Oe=(0,_.makeOutboundLink)(),Ne=()=>{const t=(0,f.sprintf)((0,f.__)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
"With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return(0,e.createElement)("p",null,(0,$.Z)({mixedString:t,components:{wincherLink:(0,e.createElement)(De,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:(0,e.createElement)(Oe,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},(0,f.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},$e=()=>(0,e.createElement)(k.Alert,{type:"error"},(0,f.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),We=()=>(0,e.createElement)(k.Alert,{type:"info"},(0,f.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,f.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"));class Be{constructor(e,t={},s={}){this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},s),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:s}=this.options,n=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,n.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:n}=e;n===this.origin&&this.popup===s&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}const Ue=t=>{const s=(0,f.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
(0,f.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return(0,e.createElement)(k.Alert,{type:"error",className:t.className},(0,$.Z)({mixedString:s,components:{reconnectToWincher:(0,e.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),t.onReconnect()}},(0,f.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,f.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};Ue.propTypes={onReconnect:o().func.isRequired,className:o().string},Ue.defaultProps={className:""};const ze=Ue,Ke=()=>(0,e.createElement)(k.Alert,{type:"error"},(0,f.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo")),He=window.yoast["chart.js"],Ye="label";function je(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ve(e,t){e.labels=t}function Ze(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye;const n=[];e.datasets=t.map((t=>{const a=e.datasets.find((e=>e[s]===t[s]));return a&&t.data&&!n.includes(a)?(n.push(a),Object.assign(a,t),a):{...t}}))}function Ge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye;const s={labels:[],datasets:[]};return Ve(s,e.labels),Ze(s,e.datasets,t),s}function Qe(t,s){const{height:n=150,width:a=300,redraw:r=!1,datasetIdKey:o,type:i,data:l,options:c,plugins:d=[],fallbackContent:u,updateMode:p,...m}=t,h=(0,e.useRef)(null),g=(0,e.useRef)(),f=()=>{h.current&&(g.current=new He.Chart(h.current,{type:i,data:Ge(l,o),options:c&&{...c},plugins:d}),je(s,g.current))},y=()=>{je(s,null),g.current&&(g.current.destroy(),g.current=null)};return(0,e.useEffect)((()=>{!r&&g.current&&c&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,c)}),[r,c]),(0,e.useEffect)((()=>{!r&&g.current&&Ve(g.current.config.data,l.labels)}),[r,l.labels]),(0,e.useEffect)((()=>{!r&&g.current&&l.datasets&&Ze(g.current.config.data,l.datasets,o)}),[r,l.datasets]),(0,e.useEffect)((()=>{g.current&&(r?(y(),setTimeout(f)):g.current.update(p))}),[r,c,l.labels,l.datasets,p]),(0,e.useEffect)((()=>{g.current&&(y(),setTimeout(f))}),[i]),(0,e.useEffect)((()=>(f(),()=>y())),[]),e.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:a},m),u)}const Xe=(0,e.forwardRef)(Qe);function Je(t,s){return He.Chart.register(s),(0,e.forwardRef)(((s,n)=>e.createElement(Xe,Object.assign({},s,{ref:n,type:t}))))}const et=Je("line",He.LineController),tt={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};He._adapters._date.override("function"==typeof N()?{_id:"moment",formats:function(){return tt},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=N()(e,t):e instanceof N()||(e=N()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return N()(e).format(t)},add:function(e,t,s){return N()(e).add(t,s).valueOf()},diff:function(e,t,s){return N()(e).diff(N()(t),s)},startOf:function(e,t,s){return e=N()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return N()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const st=["top","right","bottom","left"];function nt(e,t,s){const n={};s=s?"-"+s:"";for(let a=0;a<4;a++){const r=st[a];n[r]=parseFloat(e[t+"-"+r+s])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),He.Chart.register(He.CategoryScale,He.LineController,He.LineElement,He.PointElement,He.LinearScale,He.TimeScale,He.Legend,He.Tooltip);const at=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function rt({datasets:t,isChartShown:s,keyphrases:a}){if(!s)return null;const r=(0,n.useMemo)((()=>Object.fromEntries([...a].sort().map(((e,t)=>[e,at[t%at.length]])))),[a]),o=t.map((e=>{const t=r[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,e.createElement)(et,{height:100,data:{datasets:o},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:i.noop},tooltip:{enabled:!0,callbacks:{title:e=>N()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:101}}}})}He.Interaction.modes.xPoint=(e,t,s,n)=>{const a=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:n}=t,a=(m=s).ownerDocument.defaultView.getComputedStyle(m,null),r="border-box"===a.boxSizing,o=nt(a,"padding"),i=nt(a,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,n=s&&s.length?s[0]:e,{offsetX:a,offsetY:r}=n;let o,i,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(a,r,e.target))o=a,i=r;else{const e=t.getBoundingClientRect();o=n.clientX-e.left,i=n.clientY-e.top,l=!0}return{x:o,y:i,box:l}}(e,s),u=o.left+(d&&i.left),p=o.top+(d&&i.top);var m;let{width:h,height:g}=t;return r&&(h-=o.width+i.width,g-=o.height+i.height),{x:Math.round((l-u)/h*s.width/n),y:Math.round((c-p)/g*s.height/n)}}(t,e);let r=[];if(He.Interaction.evaluateInteractionItems(e,"x",a,((e,t,s)=>{e.inXRange(a.x,n)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const o=r.reduce(((e,t)=>Math.abs(a.x-e.element.x)<Math.abs(a.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===o)),r.some((e=>Math.abs(e.element.y-a.y)<10))?r:[]},rt.propTypes={datasets:o().arrayOf(o().shape({label:o().string.isRequired,data:o().arrayOf(o().shape({datetime:o().string.isRequired,value:o().number.isRequired})).isRequired,selected:o().bool})).isRequired,isChartShown:o().bool.isRequired,keyphrases:o().array.isRequired};const ot=({response:t,onLogin:s})=>[401,403,404].includes(t.status)?(0,e.createElement)(ze,{onReconnect:s}):(0,e.createElement)(z,null);ot.propTypes={response:o().object.isRequired,onLogin:o().func.isRequired};const it=({isSuccess:t,response:s,allKeyphrasesMissRanking:n,onLogin:a,keyphraseLimitReached:r,limit:o})=>r?(0,e.createElement)(U,{limit:o}):(0,i.isEmpty)(s)||t?n?(0,e.createElement)(le,null):null:(0,e.createElement)(ot,{response:s,onLogin:a});it.propTypes={isSuccess:o().bool.isRequired,allKeyphrasesMissRanking:o().bool.isRequired,response:o().object,onLogin:o().func.isRequired,keyphraseLimitReached:o().bool.isRequired,limit:o().number.isRequired},it.defaultProps={response:{}};let lt=null;const ct=async e=>{if(lt&&!lt.isClosed())return void lt.focus();const{url:t}=await async function(){return await V({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();lt=new Be(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:s,setRequestSucceeded:n,setRequestFailed:a,keyphrases:r,addTrackedKeyphrase:o,setKeyphraseLimitReached:i}=e;await j((()=>async function(e){const{code:t,websiteId:s}=e;return await V({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(t)),(async e=>{s(!0,!0,t.websiteId.toString()),n(e);const l=(Array.isArray(r)?r:[r]).map((e=>e.toLowerCase()));await j((()=>Z(l)),(e=>{n(e),o(e.results)}),(e=>{400===e.status&&e.limit&&i(e.limit),a(e)}),201);const c=lt.getPopup();c&&c.close()}),(async e=>a(e)))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),lt.createPopup()},dt=t=>t.isLoggedIn?null:(0,e.createElement)("p",null,(0,e.createElement)(k.NewButton,{onClick:t.onLogin,variant:"primary"},(0,f.sprintf)(/* translators: %s expands to Wincher */
(0,f.__)("Connect with %s","wordpress-seo"),"Wincher")));dt.propTypes={isLoggedIn:o().bool.isRequired,onLogin:o().func.isRequired};const ut=c().div`
	p {
		margin: 1em 0;
	}
`,pt=c().div`
	${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,mt=c().div`
	font-weight: var(--yoast-font-weight-bold);
	color: var(--yoast-color-label);
	font-size: var(--yoast-font-size-default);
`,ht=c().div.attrs({className:"yoast-field-group"})`
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
`,gt=c().div`
	margin: 8px 0;
`,ft=N().utc().startOf("day"),yt=[{name:(0,f.__)("Last day","wordpress-seo"),value:N()(ft).subtract(1,"days").format(),defaultIndex:1},{name:(0,f.__)("Last week","wordpress-seo"),value:N()(ft).subtract(1,"week").format(),defaultIndex:2},{name:(0,f.__)("Last month","wordpress-seo"),value:N()(ft).subtract(1,"month").format(),defaultIndex:3},{name:(0,f.__)("Last year","wordpress-seo"),value:N()(ft).subtract(1,"year").format(),defaultIndex:0}],wt=t=>{const{onSelect:s,selected:n,options:a,isLoggedIn:r}=t;return r?a.length<1?null:(0,e.createElement)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==n?void 0:n.value)||a[0].value,onChange:s},a.map((t=>(0,e.createElement)("option",{key:t.name,value:t.value},t.name)))):null};wt.propTypes={onSelect:o().func.isRequired,selected:o().object,options:o().array.isRequired,isLoggedIn:o().bool.isRequired};const bt=t=>{const{trackedKeyphrases:s,isLoggedIn:a,keyphrases:r,shouldTrackAll:o,permalink:l,historyDaysLimit:c}=t;if(!l&&a)return(0,e.createElement)(Ke,null);if(0===r.length)return(0,e.createElement)($e,null);const d=N()(ft).subtract(c,"days"),u=yt.filter((e=>N()(e.value).isSameOrAfter(d))),p=(0,i.orderBy)(u,(e=>e.defaultIndex),"desc")[0],[m,h]=(0,n.useState)(p),[y,w]=(0,n.useState)([]),b=y.length>0,E=(0,g.usePrevious)(s);(0,n.useEffect)((()=>{if(!(0,i.isEmpty)(s)&&(0,i.difference)(Object.keys(s),Object.keys(E||[])).length){const e=Object.values(s).map((e=>e.keyword));w(e)}}),[s,E]),(0,n.useEffect)((()=>{h(p)}),[null==p?void 0:p.name]);const v=(0,n.useCallback)((e=>{const t=yt.find((t=>t.value===e.target.value));t&&h(t)}),[h]),k=(0,n.useMemo)((()=>(0,i.isEmpty)(y)||(0,i.isEmpty)(s)?[]:Object.values(s).filter((e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)})).map((e=>{var t;return{label:e.keyword,data:e.position.history,selected:y.includes(e.keyword)&&!(0,i.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[y,s]);return(0,e.createElement)(pt,{isDisabled:!a},(0,e.createElement)("p",null,(0,f.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),a&&o&&(0,e.createElement)(We,null),(0,e.createElement)(ht,null,(0,e.createElement)(wt,{selected:m,onSelect:v,options:u,isLoggedIn:a})),(0,e.createElement)(gt,null,(0,e.createElement)(rt,{isChartShown:b,datasets:k,keyphrases:r})),(0,e.createElement)(qe,{startAt:null==m?void 0:m.value,selectedKeyphrases:y,onSelectKeyphrases:w,trackedKeyphrases:s}))};function Et(t){const{isNewlyAuthenticated:s,isLoggedIn:a}=t,r=(0,n.useCallback)((()=>{ct(t)}),[ct,t]),o=te(a);return(0,e.createElement)(ut,null,s&&(0,e.createElement)(ie,null),a&&(0,e.createElement)(oe,{trackingInfo:o}),(0,e.createElement)(mt,null,(0,f.__)("SEO performance","wordpress-seo"),(0,e.createElement)(k.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about the SEO performance feature.","wordpress-seo")})),(0,e.createElement)(Ne,null),(0,e.createElement)(dt,{isLoggedIn:a,onLogin:r}),(0,e.createElement)(it,{...t,onLogin:r}),(0,e.createElement)(bt,{...t,historyDaysLimit:(null==o?void 0:o.historyDays)||31}))}bt.propTypes={trackedKeyphrases:o().object,keyphrases:o().array.isRequired,isLoggedIn:o().bool.isRequired,shouldTrackAll:o().bool.isRequired,permalink:o().string.isRequired,historyDaysLimit:o().number},Et.propTypes={trackedKeyphrases:o().object,addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,response:o().object,shouldTrackAll:o().bool,permalink:o().string,historyDaysLimit:o().number},Et.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0};const vt=(0,g.compose)([(0,h.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:n,getWincherHistoryDaysLimit:a,getWincherLoginStatus:r,getWincherRequestIsSuccess:o,getWincherRequestResponse:i,getWincherTrackableKeyphrases:l,getWincherTrackedKeyphrases:c,getWincherAllKeyphrasesMissRanking:d,getWincherPermalink:u,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:l(),trackedKeyphrases:c(),allKeyphrasesMissRanking:d(),isLoggedIn:r(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:s(),limit:n(),response:i(),shouldTrackAll:p(),permalink:u(),historyDaysLimit:a()}})),(0,h.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:n,setWincherTrackingForKeyphrase:a,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:o}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{n(e)},addTrackedKeyphrase:e=>{a(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,n)=>{t(n),o(e,s)}}}))])(Et),kt=c()(y)`
	width: 18px;
	height: 18px;
	margin: 3px;
`;function _t(e){const{keyphrases:t,onNoKeyphraseSet:s,onOpen:n,location:a}=e;if(!t.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void s()}n(a)}function Tt(e,t){q(t)&&e.onClose()}function xt(t){const{location:s,whichModalOpen:a,shouldCloseOnClickOutside:r}=t,o=(0,n.useCallback)((()=>{_t(t)}),[_t,t]),i=(0,n.useCallback)((e=>{Tt(t,e)}),[Tt,t]),l=(0,f.__)("Track SEO performance","wordpress-seo"),c=((e=null)=>(0,n.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]))();return(0,e.createElement)(n.Fragment,null,a===s&&(0,e.createElement)(R,{title:l,onRequestClose:i,icon:(0,e.createElement)(A,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:r},(0,e.createElement)(T,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},(0,e.createElement)(vt,null))),"sidebar"===s&&(0,e.createElement)(F,{id:`wincher-open-button-${s}`,title:l,SuffixHeroIcon:(0,e.createElement)(kt,{className:"yst-text-slate-500",...c}),onClick:o}),"metabox"===s&&(0,e.createElement)("div",{className:"yst-root"},(0,e.createElement)(v,{id:`wincher-open-button-${s}`,onClick:o},(0,e.createElement)(v.Text,null,l),(0,e.createElement)(y,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...c}))))}xt.propTypes={location:o().string,whichModalOpen:o().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:o().bool},xt.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0};const St=(0,g.compose)([(0,h.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,h.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:n}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{n()}}}))])(xt),Ct=window.yoast.externals.components;function Rt(){return(0,g.createHigherOrderComponent)((function(e){return(0,g.pure)((function(t){const s=(0,n.useContext)(d.LocationContext);return(0,n.createElement)(e,{...t,location:s})}))}),"withLocation")}const It=(0,g.compose)([(0,h.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,h.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),Rt()])(Ct.CollapsibleCornerstone),Lt=window.yoast.searchMetadataPreviews,Pt=c()(k.StyledSection)`
	&${k.StyledSectionBase} {
		padding: 0;

		& ${k.StyledHeading} {
			${(0,_.getDirectionalStyle)("padding-left","padding-right")}: 20px;
			margin-left: ${(0,_.getDirectionalStyle)("0","20px")};
		}
	}
`,At=({children:t,title:s,icon:n,hasPaperStyle:a,shoppingData:r})=>(0,e.createElement)(Pt,{headingLevel:3,headingText:s,headingIcon:n,headingIconColor:"#555",hasPaperStyle:a,shoppingData:r},t);At.propTypes={children:o().element,title:o().string,icon:o().string,hasPaperStyle:o().bool,shoppingData:o().object},At.defaultProps={hasPaperStyle:!0,shoppingData:null};const Mt=At,Ft=window.wp.sanitize,qt="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE";function Dt(e,t,s="",n=!1){const a="string"==typeof t?(0,_.decodeHTML)(t):t;return{type:qt,name:e,value:a,label:s,hidden:n}}function Ot(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Nt(t,s,a=""){return(0,n.createInterpolateElement)(t,{a:(0,e.createElement)("a",{id:a,href:s,target:"_blank",rel:"noopener noreferrer"})})}const{stripHTMLTags:$t}=_.strings,Wt=["slug","content","contentImage","snippetPreviewImageURL"];function Bt(e,t="_"){return e.replace(/\s/g,t)}const Ut=(0,i.memoize)(((e,t)=>0===e?i.noop:(0,i.debounce)((s=>t(s,e)),500))),zt=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Kt=window.yoast.uiLibrary,Ht=({link:t,text:s})=>(0,e.createElement)(Kt.Root,null,(0,e.createElement)("p",null,s),(0,e.createElement)(Kt.Button,{href:t,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener"},(0,e.createElement)(zt,{className:"yst-w-4 yst-h-4 yst--ml-1 yst-shrink-0"}),(0,f.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,f.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")));Ht.propTypes={link:o().string.isRequired,text:o().string.isRequired};const Yt=Ht,jt=function(e,t){let s=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(s=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[s]&&(e.url=e.url.slice(0,s)+e.url.slice(s+1)),function(e){const t=(0,i.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,i.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,i.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],i.identity);return{url:e.url,title:$t(t(e.title)),description:$t(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?$t(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:$t(s("data_page_title",e.title)),description:$t(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?$t(s("data_page_title",e.filteredSEOTitle)):""}}(e)},Vt=(0,g.compose)([(0,h.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:n,getRecommendedReplaceVars:a,getReplaceVars:r,getShoppingData:o,getSiteIconUrlFromSettings:i,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:u,isCornerstoneContent:p,getIsTerm:m,getContentLocale:h,getSiteName:g}=e("yoast-seo/editor"),f=r();return f.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:i(),keyword:n(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:a(),replacementVariables:f,shoppingData:o(),wordsToHighlight:u(),isCornerstone:p(),isTaxonomy:m(),locale:h(),siteName:g()}})),(0,h.withDispatch)((function(e,t,{select:s}){const{updateData:n,switchMode:a,updateAnalysisData:r,findCustomFields:o}=e("yoast-seo/editor"),i=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":a(t);break;case"slug":n({slug:t}),i&&i.editPost({slug:t});break;default:n({[e]:t})}},onChangeAnalysisData:r,onReplacementVariableSearchChange:Ut(l,o)}}))])((t=>{const s=(0,i.get)(window,"wpseoScriptData.metabox.woocommerceUpsellGooglePreviewLink",""),n=(0,i.get)(window,"wpseoScriptData.woocommerceUpsell",""),a=(0,f.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,e.createElement)(d.LocationConsumer,null,(r=>(0,e.createElement)(Mt,{icon:"eye",hasPaperStyle:t.hasPaperStyle},(0,e.createElement)(e.Fragment,null,n&&(0,e.createElement)(Yt,{link:s,text:a}),(0,e.createElement)(Lt.SnippetEditor,{...t,descriptionPlaceholder:(0,f.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:jt,showCloseButton:!1,idSuffix:r})))))})),Zt=(0,h.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}}))(k.Warning),Gt=window.yoast.featureFlag,Qt=c()(k.Collapsible)`
	h2 > button {
		padding-left: 24px;
		padding-top: 16px;

		&:hover {
			background-color: #f0f0f0;
		}
	}

	div[class^="collapsible_content"] {
		padding: 24px 0;
		margin: 0 24px;
		border-top: 1px solid rgba(0,0,0,0.2);
	}

`,Xt=t=>(0,e.createElement)(Qt,{hasPadding:!0,hasSeparator:!0,...t}),Jt=()=>{const t=(0,h.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),s=(0,n.useMemo)((()=>(0,i.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,e.createElement)(k.InsightsCard,{amount:t,unit:(0,f._n)("minute","minutes",t,"wordpress-seo"),title:(0,f.__)("Reading time","wordpress-seo"),linkTo:s
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about reading time","wordpress-seo")})},es=window.yoast.analysis,ts=(0,_.makeOutboundLink)();function ss(t,s,n){const a=function(e){switch(e){case es.DIFFICULTY.FAIRLY_DIFFICULT:case es.DIFFICULTY.DIFFICULT:case es.DIFFICULTY.VERY_DIFFICULT:return(0,f.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case es.DIFFICULTY.NO_DATA:return(0,f.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,f.__)("Good job!","wordpress-seo")}}(s);return(0,e.createElement)("span",null,function(e,t){return-1===e?(0,f.sprintf)((0,f.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo")):(0,f.sprintf)(
/* Translators: %1$s expands to the numeric Flesch reading ease score,
  		%2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult').
  	 */
(0,f.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case es.DIFFICULTY.NO_DATA:return(0,f.__)("no data","wordpress-seo");case es.DIFFICULTY.VERY_EASY:return(0,f.__)("very easy","wordpress-seo");case es.DIFFICULTY.EASY:return(0,f.__)("easy","wordpress-seo");case es.DIFFICULTY.FAIRLY_EASY:return(0,f.__)("fairly easy","wordpress-seo");case es.DIFFICULTY.OKAY:return(0,f.__)("okay","wordpress-seo");case es.DIFFICULTY.FAIRLY_DIFFICULT:return(0,f.__)("fairly difficult","wordpress-seo");case es.DIFFICULTY.DIFFICULT:return(0,f.__)("difficult","wordpress-seo");case es.DIFFICULTY.VERY_DIFFICULT:return(0,f.__)("very difficult","wordpress-seo")}}(t))}(t,s)," ",s>=es.DIFFICULTY.FAIRLY_DIFFICULT?(0,e.createElement)(ts,{href:n},a+"."):a)}const ns=()=>{let t=(0,h.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const s=(0,n.useMemo)((()=>(0,i.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),a=(0,h.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[t]),r=(0,n.useMemo)((()=>{const e=(0,i.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return ss(t,a,e)}),[t,a]);return-1===t&&(t="?"),(0,e.createElement)(k.InsightsCard,{amount:t,unit:(0,f.__)("out of 100","wordpress-seo"),title:(0,f.__)("Flesch reading ease","wordpress-seo"),linkTo:s
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about Flesch reading ease","wordpress-seo"),description:r})};let as,rs,os,is;const ls=/<(\/)?(\w+)\s*(\/)?>/g;function cs(e,t,s,n,a){return{element:e,tokenStart:t,tokenLength:s,prevOffset:n,leadingTextStart:a,children:[]}}function ds(){const e=as.length-rs;0!==e&&os.push(as.substr(rs,e))}function us(e){const{element:t,tokenStart:s,tokenLength:a,prevOffset:r,children:o}=e,i=is[is.length-1],l=as.substr(i.prevOffset,s-i.prevOffset);l&&i.children.push(l),i.children.push((0,n.cloneElement)(t,null,...o)),i.prevOffset=r||s+a}function ps(e){const t=function(){const e=ls.exec(as);if(null===e)return["no-more-tokens"];const t=e.index,[s,n,a,r]=e,o=s.length;return r?["self-closed",a,t,o]:n?["closer",a,t,o]:["opener",a,t,o]}(),[s,a,r,o]=t,i=is.length,l=r>rs?rs:null;if(!e[a])return ds(),!1;switch(s){case"no-more-tokens":if(0!==i){const{leadingTextStart:e,tokenStart:t}=is.pop();os.push(as.substr(e,t))}return ds(),!1;case"self-closed":return 0===i?(null!==l&&os.push(as.substr(l,r-l)),os.push(e[a]),rs=r+o,!0):(us(cs(e[a],r,o)),rs=r+o,!0);case"opener":return is.push(cs(e[a],r,o,r+o,l)),rs=r+o,!0;case"closer":if(1===i)return function(e){const{element:t,leadingTextStart:s,prevOffset:a,tokenStart:r,children:o}=is.pop(),i=e?as.substr(a,e-a):as.substr(a);i&&o.push(i),null!==s&&os.push(as.substr(s,r-s)),os.push((0,n.cloneElement)(t,null,...o))}(r),rs=r+o,!0;const t=is.pop(),s=as.substr(t.prevOffset,r-t.prevOffset);t.children.push(s),t.prevOffset=r+o;const c=cs(t.element,t.tokenStart,t.tokenLength,r+o);return c.children=t.children,us(c),rs=r+o,!0;default:return ds(),!1}}const ms=(e,t)=>{if(as=e,rs=0,os=[],is=[],ls.lastIndex=0,!(e=>{const t="object"==typeof e,s=t&&Object.values(e);return t&&s.length&&s.every((e=>(0,n.isValidElement)(e)))})(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(ps(t));return(0,n.createElement)(n.Fragment,null,...os)},hs=({data:t,itemScreenReaderText:s,className:a,...r})=>{const o=(0,n.useMemo)((()=>{var e,s;return null!==(e=null===(s=(0,i.maxBy)(t,"number"))||void 0===s?void 0:s.number)&&void 0!==e?e:0}),[t]);return(0,e.createElement)("ul",{className:b()("yoast-data-model",a),...r},t.map((({name:t,number:n})=>(0,e.createElement)("li",{key:`${t}_dataItem`,style:{"--yoast-width":n/o*100+"%"}},t,(0,e.createElement)("span",null,n),s&&(0,e.createElement)("span",{className:"screen-reader-text"},(0,f.sprintf)(s,n))))))};hs.propTypes={data:o().arrayOf(o().shape({name:o().string.isRequired,number:o().number.isRequired})),itemScreenReaderText:o().string,className:o().string},hs.defaultProps={data:[],itemScreenReaderText:"",className:""};const gs=hs,fs=window.wp.url,ys=(0,_.makeOutboundLink)(),ws=({location:t})=>{const s=(0,h.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),a=(0,h.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),r=(0,n.useMemo)((()=>(0,i.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-prominent_words`,"")),[t]),o=(0,n.useMemo)((()=>{const t=(0,i.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return ms((0,f.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,f.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,e.createElement)(ys,{href:t})})}),[]),l=(0,n.useMemo)((()=>ms((0,f.sprintf)(
// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,f.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,e.createElement)("b",null)})),[]),c=(0,h.useSelect)((e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]}),[]),u=(0,n.useMemo)((()=>{const e=(0,f.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
(0,f.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),p=(0,n.useMemo)((()=>a?u:c.map((({word:e,occurrence:t})=>({name:e,number:t})))),[c,u]);if(!s)return null;const{locationContext:m}=(0,d.useRootContext)();return(0,e.createElement)("div",{className:"yoast-prominent-words"},(0,e.createElement)("div",{className:"yoast-field-group__title"},(0,e.createElement)("b",null,(0,f.__)("Prominent words","wordpress-seo"))),!a&&(0,e.createElement)("p",null,0===p.length?(0,f.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,f.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")),a&&(0,e.createElement)("p",null,l),a&&(0,e.createElement)(ys,{href:(0,fs.addQueryArgs)(r,{context:m}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell"},(0,f.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
(0,f.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,e.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,e.createElement)("p",null,o),(0,e.createElement)(gs,{data:p,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,f.__)("%d occurrences","wordpress-seo"),"aria-label":(0,f.__)("Prominent words","wordpress-seo"),className:a?"yoast-data-model--upsell":null}))};ws.propTypes={location:o().string.isRequired};const bs=ws,Es=()=>{const t=(0,h.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),s=(0,n.useMemo)((()=>(0,i.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let a=(0,f._n)("word","words",t.count,"wordpress-seo"),r=(0,f.__)("Word count","wordpress-seo"),o=(0,f.__)("Learn more about word count","wordpress-seo");return"character"===t.unit&&(a=(0,f._n)("character","characters",t.count,"wordpress-seo"),r=(0,f.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
o=(0,f.__)("Learn more about character count","wordpress-seo")),(0,e.createElement)(k.InsightsCard,{amount:t.count,unit:a,title:r,linkTo:s,linkText:o})},vs=(0,_.makeOutboundLink)(),ks=({location:t})=>{const s=(0,n.useMemo)((()=>(0,i.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-text_formality`,"")),[t]),a=(0,n.useMemo)((()=>ms((0,f.sprintf)(
// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,f.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,e.createElement)("b",null)})),[]);return(0,e.createElement)(n.Fragment,null,(0,e.createElement)("div",null,(0,e.createElement)("p",null,a),(0,e.createElement)(vs,{href:s,className:"yoast-button yoast-button-upsell"},(0,f.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
(0,f.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,e.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))))};ks.propTypes={location:o().string.isRequired};const _s=ks;function Ts(){return(0,i.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const xs=({location:t,name:s})=>{const n=(0,h.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),r=Ts().isPremium,o=r?(0,i.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,i.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),l=(0,f.__)("Read more about text formality.","wordpress-seo");return n?(0,e.createElement)("div",{className:"yoast-text-formality"},(0,e.createElement)("div",{className:"yoast-field-group__title"},(0,e.createElement)("b",null,(0,f.__)("Text formality","wordpress-seo")),(0,e.createElement)(k.HelpIcon,{linkTo:o,linkText:l})),r?(0,e.createElement)(a.Slot,{name:s}):(0,e.createElement)(_s,{location:t})):null};xs.propTypes={location:o().string.isRequired,name:o().string.isRequired};const Ss=xs,Cs=({location:t})=>{const s=(0,h.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,e.createElement)(Xt,{title:(0,f.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${t}`,className:"yoast-insights"},(0,e.createElement)(bs,{location:t}),(0,e.createElement)("div",null,s&&(0,e.createElement)("div",{className:"yoast-insights-row"},(0,e.createElement)(ns,null)),(0,e.createElement)("div",{className:"yoast-insights-row yoast-insights-row--columns"},(0,e.createElement)(Jt,null),(0,e.createElement)(Es,null)),(0,Gt.isFeatureEnabled)("TEXT_FORMALITY")&&(0,e.createElement)(Ss,{location:t,name:"YoastTextFormalityMetabox"})))};Cs.propTypes={location:o().string},Cs.defaultProps={location:"metabox"};const Rs=Cs,Is=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),Ls=()=>[(0,f.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,f.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,f.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,f.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,f.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,f.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,f.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,f.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,f.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,f.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,f.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,f.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")],Ps=c().div`
  padding: 25px 32px 32px;
  color: #303030;
`,As=c().ul`
  margin: 0;
  padding: 0;

  li {
    list-style-image: var(--yoast-svg-icon-check);
    margin: 0.5rem 0 0 1.5rem;
    line-height: 1.4em;

    &::marker {
      font-size: 1.5rem;
    }
  }
`,Ms=c().span`
  display: block;
  margin-top: 4px;
`,Fs=c().h2`
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #303030;
  font-size: 0.8125rem;
  font-weight: 600;
`,qs=c().p`
  display: block;
  margin: 0.25rem 0 1rem 0 !important;
  max-width: 420px;
`,Ds=c().hr`
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-top: 0;
  border-bottom: 1px solid #E2E8F0;
`,Os=c().div`
  text-align: center;
`,Ns=c().a`
  width: 100%;
`,$s=(0,_.makeOutboundLink)(Ns);class Ws extends n.Component{constructor(e){super(e),this.state={defaultPrice:"99"}}createBenefitsList(t){return t.length>0&&(0,e.createElement)(As,{role:"list"},t.map(((t,s)=>(0,e.createElement)("li",{key:`upsell-benefit-${s}`},(0,n.createInterpolateElement)(t,{strong:(0,e.createElement)("strong",null)})))))}render(){const t=(0,h.select)("yoast-seo/editor").isPromotionActive("black-friday-2023-promotion"),{defaultPrice:s}=this.state,a=t?"69.30":null,r=a||s;return(0,e.createElement)(n.Fragment,null,t&&(0,e.createElement)("div",{className:"yst-flex yst-justify-between yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6"},(0,e.createElement)("div",null,(0,f.__)("BLACK FRIDAY","wordpress-seo")),(0,e.createElement)("div",null,(0,f.__)("30% OFF","wordpress-seo"))),(0,e.createElement)(Ps,null,(0,e.createElement)(Fs,null,this.props.title),(0,e.createElement)(qs,null,this.props.description),(0,e.createElement)(Os,null,(0,e.createElement)($s,{...this.props.upsellButton},this.props.upsellButtonText,this.props.upsellButtonHasCaret&&(0,e.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})),(0,e.createElement)("div",{className:"yst-text-slate-600 yst-my-4"},a&&(0,e.createElement)(n.Fragment,null,(0,e.createElement)("span",{className:"yst-text-slate-500 yst-line-through"},s)," "),(0,e.createElement)("span",{className:"yst-text-slate-900 yst-text-2xl yst-font-bold"},r)," ",(0,f.__)("$ USD / € EUR / £ GBP per year (ex. VAT)","wordpress-seo")),(0,e.createElement)(Ms,{id:this.props.upsellButton["aria-describedby"]},this.props.upsellButtonLabel)),(0,e.createElement)(Ds,null),(0,e.createElement)(Fs,null,this.props.benefitsTitle),this.createBenefitsList(this.props.benefits)))}}Ws.propTypes={title:o().node,benefits:o().array,benefitsTitle:o().node,description:o().node,upsellButton:o().object,upsellButtonText:o().string.isRequired,upsellButtonLabel:o().string,upsellButtonHasCaret:o().bool},Ws.defaultProps={title:null,description:null,benefits:[],benefitsTitle:null,upsellButton:{href:"",className:"button button-primary"},upsellButtonLabel:"",upsellButtonHasCaret:!0};const Bs=Ws,Us=()=>{const[t,,,s,n]=(0,Kt.useToggleState)(!1),{locationContext:a}=(0,d.useRootContext)(),r=(0,Kt.useSvgAria)(),o=a.includes("sidebar"),i=a.includes("metabox"),l=wpseoAdminL10n[o?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,e.createElement)(e.Fragment,null,t&&(0,e.createElement)(R,{title:(0,f.__)("Get internal linking suggestions","wordpress-seo"),onRequestClose:n,additionalClassName:"",id:"yoast-internal-linking-suggestions-upsell",className:`${S} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,e.createElement)(x,null,(0,e.createElement)(Bs,{title:(0,f.__)("Rank higher by connecting your content","wordpress-seo"),description:(0,f.sprintf)(/* translators: %s expands to Yoast SEO Premium. */
(0,f.__)("%s automatically suggests to what content you can link with easy drag-and-drop functionality, which is good for your SEO!","wordpress-seo"),"Yoast SEO Premium"),benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
(0,f.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Ls(),upsellButtonText:(0,f.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,f.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:(0,fs.addQueryArgs)(l,{context:a}),className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,f.__)("1 year free support and updates included!","wordpress-seo")}))),o&&(0,e.createElement)(F,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,f.__)("Internal linking suggestions","wordpress-seo"),onClick:s},(0,e.createElement)("div",{className:"yst-root"},(0,e.createElement)(Kt.Badge,{size:"small",variant:"upsell"},(0,e.createElement)(Is,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})))),i&&(0,e.createElement)("div",{className:"yst-root"},(0,e.createElement)(v,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:s},(0,e.createElement)(v.Text,null,(0,f.__)("Internal linking suggestions","wordpress-seo")),(0,e.createElement)(Kt.Badge,{size:"small",variant:"upsell"},(0,e.createElement)(Is,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...r}),(0,e.createElement)("span",null,"Premium")))))},zs=({children:t})=>(0,e.createElement)("div",null,t);zs.propTypes={renderPriority:o().number.isRequired,children:o().node.isRequired};const Ks=zs,Hs=e=>(0,i.get)(window,"wordproofSdk.data"+(e?`.${e}`:""),{}),Ys=()=>{const e=Ts();return 1===(0,i.get)(e,"wordproofIntegrationActive",0)},js=e=>{const t=new CustomEvent(e);window.dispatchEvent(t)},Vs=()=>{js("wordproof:open_authentication")},Zs=t=>{if(!t.isAuthenticated)return null;const s=(0,n.useCallback)((()=>{js("wordproof:open_settings")}));return(0,e.createElement)(a.Button,{variant:"link",onClick:s},(0,f.__)("Manage WordProof settings","wordpress-seo"))};Zs.propTypes={isAuthenticated:o().bool.isRequired};const Gs=t=>{const s=(0,n.useCallback)((()=>{Vs()}));return!t.isAuthenticated&&t.toggleIsEnabled?(0,e.createElement)(a.Button,{variant:"link",onClick:s},(0,f.__)("Authenticate with WordProof","wordpress-seo")):null};Gs.propTypes={isAuthenticated:o().bool.isRequired,toggleIsEnabled:o().bool.isRequired};class Qs extends n.Component{constructor(e){super(e),this.handleToggle=this.handleToggle.bind(this),this.turnToggleOff=this.turnToggleOff.bind(this),this.turnToggleOn=this.turnToggleOn.bind(this)}componentDidMount(){window.addEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.addEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}componentWillUnmount(){window.removeEventListener("wordproof:webhook:failed",this.turnToggleOff,!1),window.removeEventListener("wordproof:oauth:success",this.turnToggleOn,!1)}handleToggle(e){this.props.isAuthenticated||!e?this.props.onToggle(e):Vs()}turnToggleOn(){this.props.onToggle(!0)}turnToggleOff(){this.props.onToggle(!1)}render(){return(0,e.createElement)(n.Fragment,null,(0,e.createElement)(k.FieldGroup
/* translators: Hidden accessibility text. */,{linkText:(0,f.__)("Learn more about timestamping","wordpress-seo"),linkTo:"https://yoa.st/wordproof-integration",htmlFor:this.props.id,label:(0,f.__)("Timestamp with WordProof","wordpress-seo")},(0,e.createElement)(k.Toggle,{id:this.props.id,labelText:(0,f.sprintf)(/* Translators: %s translates to the Post type in singular form */
(0,f.__)("Timestamp this %s","wordpress-seo"),this.props.postTypeName.toLowerCase()),isEnabled:this.props.isEnabled,onSetToggleState:this.handleToggle}),(0,e.createElement)(Zs,{isAuthenticated:this.props.isAuthenticated}),(0,e.createElement)(Gs,{toggleIsEnabled:this.props.isEnabled,isAuthenticated:this.props.isAuthenticated}),!this.props.isAuthenticated&&this.props.isEnabled&&(0,e.createElement)(k.Alert,{className:"yoast-wordproof-metabox-alert",type:"info"},(0,f.__)("Unable to create new timestamps. Please authenticate with WordProof.","wordpress-seo"))))}}Qs.propTypes={id:o().string,isEnabled:o().bool,onToggle:o().func,postTypeName:o().string,isAuthenticated:o().bool.isRequired},Qs.defaultProps={id:"timestamp-toggle",isEnabled:!0,postTypeName:"post",onToggle:i.noop};const Xs=(0,g.compose)([(0,h.withSelect)((e=>({isAuthenticated:e("wordproof").getIsAuthenticated()})))])(Qs),Js=({noIndex:t,onNoIndexChange:s,editorContext:a,isPrivateBlog:r})=>{const o=(e=>{const t=(0,f.__)("No","wordpress-seo"),s=(0,f.__)("Yes","wordpress-seo"),n=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,f.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,f.__)("%s (current default for %s)","wordpress-seo"),n,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,f.sprintf)(/* translators: the first %s translates to "yes" or "no", the second %s translates to the content type label in plural form */
(0,f.__)("%s (current default for %s)","wordpress-seo"),n,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(a);return(0,e.createElement)(d.LocationConsumer,null,(a=>(0,e.createElement)(n.Fragment,null,r&&(0,e.createElement)(k.Alert,{type:"warning"},(0,f.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")),(0,e.createElement)(k.Select,{label:(0,f.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:s,id:(0,_.join)(["yoast-meta-robots-noindex",a]),options:o,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about the no-index setting on our help page.","wordpress-seo")}))))};Js.propTypes={noIndex:o().string.isRequired,onNoIndexChange:o().func.isRequired,editorContext:o().object.isRequired,isPrivateBlog:o().bool},Js.defaultProps={isPrivateBlog:!1};const en=({noFollow:t,onNoFollowChange:s})=>(0,e.createElement)(d.LocationConsumer,null,(n=>{const a=(0,_.join)(["yoast-meta-robots-nofollow",n]);return(0,e.createElement)(k.RadioButtonGroup,{id:a,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,f.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:a,onChange:s,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}));en.propTypes={noFollow:o().string.isRequired,onNoFollowChange:o().func.isRequired};const tn=({advanced:t,onAdvancedChange:s})=>(0,e.createElement)(d.LocationConsumer,null,(n=>{const a=(0,_.join)(["yoast-meta-robots-advanced",n]),r=`${a}-input`;return(0,e.createElement)(k.MultiSelect,{label:(0,f.__)("Meta robots advanced","wordpress-seo"),onChange:s,id:a,inputId:r,options:[{name:(0,f.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,f.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,f.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}));tn.propTypes={advanced:o().array.isRequired,onAdvancedChange:o().func.isRequired};const sn=({breadcrumbsTitle:t,onBreadcrumbsTitleChange:s})=>(0,e.createElement)(d.LocationConsumer,null,(n=>(0,e.createElement)(k.TextInput,{label:(0,f.__)("Breadcrumbs Title","wordpress-seo"),id:(0,_.join)(["yoast-breadcrumbs-title",n]),onChange:s,value:t,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})));sn.propTypes={breadcrumbsTitle:o().string.isRequired,onBreadcrumbsTitleChange:o().func.isRequired};const nn=({canonical:t,onCanonicalChange:s})=>(0,e.createElement)(d.LocationConsumer,null,(n=>(0,e.createElement)(k.TextInput,{label:(0,f.__)("Canonical URL","wordpress-seo"),id:(0,_.join)(["yoast-canonical",n]),onChange:s,value:t,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})));nn.propTypes={canonical:o().string.isRequired,onCanonicalChange:o().func.isRequired};const an=({wordproofTimestamp:t,onWordProofTimestampChange:s,postTypeName:n})=>(0,e.createElement)(d.LocationConsumer,null,(a=>(0,e.createElement)(Xs,{id:(0,_.join)(["yoast-wordproof-timestamp",a]),isEnabled:t,onToggle:s,postTypeName:n})));an.propTypes={wordproofTimestamp:o().bool.isRequired,onWordProofTimestampChange:o().func.isRequired,postTypeName:o().string.isRequired};const rn=t=>{const{noIndex:s,noFollow:a,advanced:r,breadcrumbsTitle:o,canonical:i,wordproofTimestamp:l,onNoIndexChange:c,onNoFollowChange:d,onAdvancedChange:u,onBreadcrumbsTitleChange:p,onCanonicalChange:m,onWordProofTimestampChange:h,onLoad:g,isLoading:f,editorContext:y,isBreadcrumbsDisabled:w,isPrivateBlog:b,isWordProofIntegrationActive:E}=t;(0,n.useEffect)((()=>{setTimeout((()=>{f&&g()}))}));const v={noIndex:s,onNoIndexChange:c,editorContext:y,isPrivateBlog:b},k={noFollow:a,onNoFollowChange:d},_={advanced:r,onAdvancedChange:u},T={breadcrumbsTitle:o,onBreadcrumbsTitleChange:p},x={canonical:i,onCanonicalChange:m},S={wordproofTimestamp:l,onWordProofTimestampChange:h,postTypeName:y.postTypeNameSingular};return f?null:(0,e.createElement)(n.Fragment,null,(0,e.createElement)(Js,{...v}),y.isPost&&(0,e.createElement)(en,{...k}),y.isPost&&(0,e.createElement)(tn,{..._}),!w&&(0,e.createElement)(sn,{...T}),(0,e.createElement)(nn,{...x}),E&&(0,e.createElement)(an,{...S}))};rn.propTypes={noIndex:o().string.isRequired,canonical:o().string.isRequired,wordproofTimestamp:o().bool,onNoIndexChange:o().func.isRequired,onCanonicalChange:o().func.isRequired,onWordProofTimestampChange:o().func,onLoad:o().func.isRequired,isLoading:o().bool.isRequired,editorContext:o().object.isRequired,isBreadcrumbsDisabled:o().bool.isRequired,isPrivateBlog:o().bool,advanced:o().array,onAdvancedChange:o().func,noFollow:o().string,onNoFollowChange:o().func,breadcrumbsTitle:o().string,onBreadcrumbsTitleChange:o().func,isWordProofIntegrationActive:o().bool.isRequired},rn.defaultProps={advanced:[],onAdvancedChange:()=>{},noFollow:"",onNoFollowChange:()=>{},breadcrumbsTitle:"",onBreadcrumbsTitleChange:()=>{},isPrivateBlog:!1,onWordProofTimestampChange:()=>{},wordproofTimestamp:!1};const on=rn,ln=(0,g.compose)([(0,h.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:n,getBreadcrumbsTitle:a,getCanonical:r,getWordProofTimestamp:o,getIsLoading:i,getEditorContext:l,getPreferences:c}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:d,isPrivateBlog:u,isWordProofIntegrationActive:p}=c();return{noIndex:t(),noFollow:s(),advanced:n(),breadcrumbsTitle:a(),canonical:r(),wordproofTimestamp:o(),isLoading:i(),editorContext:l(),isBreadcrumbsDisabled:d,isPrivateBlog:u,isWordProofIntegrationActive:p}})),(0,h.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:n,setBreadcrumbsTitle:a,setCanonical:r,setWordProofTimestamp:o,loadAdvancedSettingsData:i}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:n,onBreadcrumbsTitleChange:a,onCanonicalChange:r,onWordProofTimestampChange:o,onLoad:i}}))])(on),cn=c().p`
	color: #606770;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	position: ${e=>"landscape"===e.mode?"relative":"static"};
`,dn=t=>{const{siteUrl:s}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"screen-reader-text"},s),(0,e.createElement)(cn,{"aria-hidden":"true"},(0,e.createElement)("span",null,s)))};dn.propTypes={siteUrl:o().string.isRequired};const un=dn,pn=window.yoast.socialMetadataForms,mn=c().img`
	&& {
		max-width: ${e=>e.width}px;
		height: ${e=>e.height}px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: none;
	}
`,hn=c().img`
	&&{
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,gn=c().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,fn=t=>{const{imageProps:s,width:n,height:a,imageMode:r}=t;return"landscape"===r?(0,e.createElement)(gn,{aspectRatio:s.aspectRatio},(0,e.createElement)(hn,{src:s.src,alt:s.alt})):(0,e.createElement)(mn,{src:s.src,alt:s.alt,width:n,height:a,imageProperties:s})};function yn(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function wn(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}async function bn(e,t,s=!1){const n=await function(e){return new Promise(((t,s)=>{const n=new Image;n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=s,n.src=e}))}(e);let a=s?"landscape":"square";"Facebook"===t&&(a=(0,pn.determineFacebookImageMode)(n));const r=function(e){return"Twitter"===e?pn.TWITTER_IMAGE_SIZES:pn.FACEBOOK_IMAGE_SIZES}(t),o=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:wn(t,yn(e,t,s))}(r,n,a);return{mode:a,height:o.height,width:o.width}}async function En(e,t,s=!1){try{return{imageProperties:await bn(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}fn.propTypes={imageProps:o().shape({src:o().string.isRequired,alt:o().string.isRequired,aspectRatio:o().number.isRequired}).isRequired,width:o().number.isRequired,height:o().number.isRequired,imageMode:o().string},fn.defaultProps={imageMode:"landscape"};const vn=c().div`
	position: relative;
	${e=>"landscape"===e.mode?`max-width: ${e.dimensions.width}`:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
	overflow: hidden;
	background-color: ${K.colors.$color_white};
`,kn=c().div`
	box-sizing: border-box;
	max-width: ${pn.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${pn.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${K.colors.$color_grey};
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Tn extends e.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await En(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:pn.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:pn.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:pn.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:pn.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:pn.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:pn.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:t,status:s}=this.state;if("loading"===s||""===this.props.src||"errored"===s)return(0,e.createElement)(kn,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,f.__)("Select image","wordpress-seo"));const n=this.retrieveContainerDimensions(t.mode);return(0,e.createElement)(vn,{mode:t.mode,dimensions:n,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},(0,e.createElement)(fn,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:pn.FACEBOOK_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}Tn.propTypes={src:o().string,alt:o().string,onImageLoaded:o().func,onImageClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func},Tn.defaultProps={src:"",alt:"",onImageLoaded:i.noop,onImageClick:i.noop,onMouseEnter:i.noop,onMouseLeave:i.noop};const xn=Tn,Sn=c().span`
	line-height: ${20}px;
	min-height : ${20}px;
	color: #1d2129;
	font-weight: 600;
	overflow: hidden;
	font-size: 16px;
	margin: 3px 0 0;
	letter-spacing: normal;
	white-space: normal;
	flex-shrink: 0;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;
`,Cn=c().p`
	line-height: ${16}px;
	min-height : ${16}px;
	color: #606770;
	font-size: 14px;
	padding: 0;
	text-overflow: ellipsis;
	margin: 3px 0 0 0;
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;

	@media all and ( max-width: ${e=>e.maxWidth} ) {
		display: none;
	}
`,Rn=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},In=c().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,Ln=c().div`
	box-sizing: border-box;
	background-color: #f2f3f5;
	margin: 0;
	padding: 10px 12px;
	position: relative;
	border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
	font-size: 12px;
	overflow: hidden;
`;class Pn extends e.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=t().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,n=this.getTitleLineCount();let a=t-n;"portrait"===s&&(a=5===n?0:4),a!==e&&this.setState({descriptionLineCount:a})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:t,maxLineCount:s,descriptionLineCount:n}=this.state;return(0,e.createElement)(In,{id:"facebookPreview",mode:t},(0,e.createElement)(xn,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,e.createElement)(Ln,{mode:t},(0,e.createElement)(un,{siteUrl:this.props.siteUrl,mode:t}),(0,e.createElement)(Sn,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:s},this.props.title),n>0&&(0,e.createElement)(Cn,{maxWidth:Rn(t),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:n},this.props.description)))}}Pn.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},Pn.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const An=Pn,Mn=c().div`
	text-transform: lowercase;
	color: rgb(83, 100, 113);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	fill: currentcolor;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
`,Fn=t=>(0,e.createElement)(Mn,null,(0,e.createElement)("span",null,t.siteUrl));Fn.propTypes={siteUrl:o().string.isRequired};const qn=Fn,Dn=(e,t=!0)=>e?`\n\t\t\tmax-width: ${pn.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${pn.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,On=c().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>Dn(e.isLarge)}
`,Nn=c().div`
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 1rem;
	${e=>Dn(e.isLarge,!1)}
`,$n=c()(Nn)`
	${e=>e.isLarge&&`height: ${pn.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Wn extends t().Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await En(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:t,imageProperties:s}=this.state;return"loading"===t||""===this.props.src||"errored"===t?(0,e.createElement)($n,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,f.__)("Select image","wordpress-seo")):(0,e.createElement)(On,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,e.createElement)(fn,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:pn.TWITTER_IMAGE_SIZES.aspectRatio},width:s.width,height:s.height,imageMode:s.mode}))}}Wn.propTypes={isLarge:o().bool.isRequired,src:o().string,alt:o().string,onImageClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func},Wn.defaultProps={src:"",alt:"",onMouseEnter:i.noop,onImageClick:i.noop,onMouseLeave:i.noop};const Bn=c().div`
	display: flex;
	flex-direction: column;
	padding: 12px;
	justify-content: center;
	margin: 0;
	box-sizing: border-box;
	flex: auto;
	min-width: 0px;
	gap:2px;
	> * {
		line-height:20px;
		min-height:20px;
		font-size:15px;
    }
`,Un=t=>(0,e.createElement)(Bn,null,t.children);Un.propTypes={children:o().array.isRequired};const zn=Un,Kn=c().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,Hn=c().p`
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(83, 100, 113);
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	@media all and ( max-width: ${pn.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,Yn=c().div`
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	max-width: 507px;
	border: 1px solid #E1E8ED;
	box-sizing: border-box;
	border-radius: 14px;
	color: #292F33;
	background: #FFFFFF;
	text-overflow: ellipsis;
	display: flex;

	&:hover {
		background: #f5f8fa;
		border: 1px solid rgba(136,153,166,.5);
	}
`,jn=c()(Yn)`
	flex-direction: column;
	max-height: 370px;
`,Vn=c()(Yn)`
	flex-direction: row;
	height: 125px;
`;class Zn extends e.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:t,imageUrl:s,imageFallbackUrl:n,alt:a,title:r,description:o,siteUrl:i}=this.props,l=t?jn:Vn;return(0,e.createElement)(l,{id:"twitterPreview"},(0,e.createElement)(Wn,{src:s||n,alt:a,isLarge:t,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,e.createElement)(zn,null,(0,e.createElement)(qn,{siteUrl:i}),(0,e.createElement)(Kn,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},r),(0,e.createElement)(Hn,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},o)))}}Zn.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,isLarge:o().bool,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},Zn.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Gn=Zn,Qn=window.yoast.replacementVariableEditor;class Xn extends e.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?An:Gn,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:s,onTitleChange:n,onSelectImageClick:a,onRemoveImageClick:r,socialMediumName:o,imageWarnings:i,siteUrl:l,description:c,descriptionInputPlaceholder:d,descriptionPreviewFallback:u,imageUrl:p,imageFallbackUrl:m,alt:h,title:g,titleInputPlaceholder:f,titlePreviewFallback:y,replacementVariables:w,recommendedReplacementVariables:b,applyReplacementVariables:E,onReplacementVariableSearchChange:v,isPremium:_,isLarge:T,socialPreviewLabel:x,idSuffix:S,activeMetaTabId:C}=this.props,R=E({title:g||y,description:c||u});return(0,e.createElement)(t().Fragment,null,x&&(0,e.createElement)(k.SimulatedLabel,null,x),(0,e.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:a,siteUrl:l,title:R.title,description:R.description,imageUrl:p,imageFallbackUrl:m,alt:h,isLarge:T,activeMetaTabId:C}),(0,e.createElement)(pn.SocialMetadataPreviewForm,{onDescriptionChange:s,socialMediumName:o,title:g,titleInputPlaceholder:f,onRemoveImageClick:r,imageSelected:!!p,imageUrl:p,onTitleChange:n,onSelectImageClick:a,description:c,descriptionInputPlaceholder:d,imageWarnings:i,replacementVariables:w,recommendedReplacementVariables:b,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:_,setEditorRef:this.setEditorRef,idSuffix:S}))}}Xn.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,imageFallbackUrl:o().string.isRequired,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,alt:o().string,isPremium:o().bool,imageWarnings:o().array,isLarge:o().bool,siteUrl:o().string,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,descriptionPreviewFallback:o().string,titlePreviewFallback:o().string,replacementVariables:Qn.replacementVariablesShape,recommendedReplacementVariables:Qn.recommendedReplacementVariablesShape,applyReplacementVariables:o().func,onReplacementVariableSearchChange:o().func,socialPreviewLabel:o().string,idSuffix:o().string,activeMetaTabId:o().string},Xn.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Jn={},ea=(e,t,{log:s=console.warn}={})=>{Jn[e]||(Jn[e]=!0,s(t))},ta=(e,t=i.noop)=>{const s={};for(const n in e)Object.hasOwn(e,n)&&Object.defineProperty(s,n,{set:s=>{e[n]=s,t("set",n,s)},get:()=>(t("get",n),e[n])});return s};ta({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>ea(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),ta({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>ea(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const sa=c().div`
	max-width: calc(527px + 1.5rem);
`,na=t=>{const s="Twitter"===t.socialMediumName?(0,f.__)("Twitter share preview","wordpress-seo"):(0,f.__)("Social share preview","wordpress-seo"),{locationContext:n}=(0,Kt.useRootContext)();return(0,e.createElement)(Kt.Root,null,(0,e.createElement)(sa,null,(0,e.createElement)(Kt.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,fs.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+t.socialMediumName.toLowerCase()],{context:n}),cardText:(0,f.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,f.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"},(0,e.createElement)("div",{className:"yst-grayscale yst-opacity-50"},(0,e.createElement)(Kt.Label,null,s),(0,e.createElement)(An,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:i.noop,onImageClick:i.noop,onMouseHover:i.noop})))))};na.propTypes={socialMediumName:o().oneOf(["Social","Twitter"]).isRequired};const aa=na;class ra extends n.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:t,onTitleChange:s,onSelectImageClick:a,onRemoveImageClick:r,socialMediumName:o,imageWarnings:i,description:l,descriptionInputPlaceholder:c,imageUrl:d,alt:u,title:p,titleInputPlaceholder:m,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:f,isPremium:y,location:w}=this.props;return(0,e.createElement)(n.Fragment,null,(0,e.createElement)(aa,{socialMediumName:o}),(0,e.createElement)(pn.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:o,title:p,titleInputPlaceholder:m,onRemoveImageClick:r,imageSelected:!!d,imageUrl:d,imageAltText:u,onTitleChange:s,onSelectImageClick:a,description:l,descriptionInputPlaceholder:c,imageWarnings:i,replacementVariables:h,recommendedReplacementVariables:g,onReplacementVariableSearchChange:f,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:y,setEditorRef:this.setEditorRef,idSuffix:w}))}}ra.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,isPremium:o().bool,imageWarnings:o().array,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,replacementVariables:Qn.replacementVariablesShape,recommendedReplacementVariables:Qn.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:o().func,location:o().string,alt:o().string},ra.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const oa=ra,ia=t=>{const[s,r]=(0,n.useState)(""),o=(0,n.useCallback)((e=>{r(e.detail.metaTabId)}),[r]);(0,n.useEffect)((()=>(setTimeout(t.onLoad),window.addEventListener("YoastSEO:metaTabChange",o),()=>{window.removeEventListener("YoastSEO:metaTabChange",o)})),[]);const i=(0,n.useMemo)((()=>({...t,activeMetaTabId:s})),[t,s]);return t.isPremium?(0,e.createElement)(a.Slot,{name:`YoastFacebookPremium${t.location.charAt(0).toUpperCase()+t.location.slice(1)}`,fillProps:i}):(0,e.createElement)(oa,{...i})};ia.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired};const la=ia;function ca(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var n;e({type:(n=s.attributes).subtype,width:n.width,height:n.height,url:n.url,id:n.id,sizes:n.sizes,alt:n.alt||n.title||n.name})})),t})(e).open()}const da=()=>{ca((e=>(0,h.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,n=(0,pn.determineFacebookImageMode)({width:t,height:s}),a=pn.FACEBOOK_IMAGE_SIZES[n+"Width"],r=pn.FACEBOOK_IMAGE_SIZES[n+"Height"],o=Object.values(e.sizes).find((e=>e.width>=a&&e.height>=r));return{url:o?o.url:e.url,id:e.id,warnings:(0,_.validateFacebookImage)(e),alt:e.alt||""}})(e))))},ua=(0,g.compose)([(0,h.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:n,getSeoTitle:a,getFacebookImageUrl:r,getImageFallback:o,getFacebookWarnings:i,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:u,getSeoTitleTemplateNoFallback:p,getSocialTitleTemplate:m,getSeoDescriptionTemplate:h,getSocialDescriptionTemplate:g,getReplacedExcerpt:f,getFacebookAltText:y}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:o(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:g()||s()||h()||f()||"",title:n(),titlePreviewFallback:m()||a()||p()||u()||"",imageWarnings:i(),siteUrl:d(),isPremium:!!Ts().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:y()}})),(0,h.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:n,setFacebookPreviewDescription:a,clearFacebookPreviewImage:r,loadFacebookPreviewData:o,findCustomFields:i}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:da,onRemoveImageClick:r,onDescriptionChange:a,onTitleChange:n,onLoad:o,onReplacementVariableSearchChange:Ut(l,i)}})),Rt()])(la),pa=t=>((0,n.useEffect)((()=>{setTimeout(t.onLoad)}),[]),t.isPremium?(0,e.createElement)(a.Slot,{name:`YoastTwitterPremium${t.location.charAt(0).toUpperCase()+t.location.slice(1)}`,fillProps:t}):(0,e.createElement)(oa,{...t}));pa.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired};const ma=pa,ha=()=>{ca((e=>(0,h.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,i.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=pn.TWITTER_IMAGE_SIZES[t+"Width"],n=pn.TWITTER_IMAGE_SIZES[t+"Height"],a=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=n));return{url:a?a.url:e.url,id:e.id,warnings:(0,_.validateTwitterImage)(e),alt:e.alt||""}})(e))))},ga=(0,g.compose)([(0,h.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:n,getFacebookImageUrl:a,getFacebookTitle:r,getFacebookDescription:o,getDescription:i,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:u,getRecommendedReplaceVars:p,getReplaceVars:m,getSiteUrl:h,getSeoTitleTemplate:g,getSeoTitleTemplateNoFallback:f,getSocialTitleTemplate:y,getSeoDescriptionTemplate:w,getSocialDescriptionTemplate:b,getReplacedExcerpt:E,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:n(),imageFallbackUrl:a()||u(),recommendedReplacementVariables:p(),replacementVariables:m(),description:t(),descriptionPreviewFallback:b()||o()||i()||w()||E()||"",title:s(),titlePreviewFallback:y()||r()||l()||f()||g()||"",imageWarnings:c(),siteUrl:h(),isPremium:!!Ts().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Twitter",alt:v()}})),(0,h.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:n,setTwitterPreviewDescription:a,clearTwitterPreviewImage:r,loadTwitterPreviewData:o,findCustomFields:i}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:ha,onRemoveImageClick:r,onDescriptionChange:a,onTitleChange:n,onLoad:o,onReplacementVariableSearchChange:Ut(l,i)}})),Rt()])(ma),fa=c().legend`
	margin: 16px 0;
	padding: 0;
	color: ${K.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,ya=c().legend`
	margin: 0 0 16px;
	padding: 0;
	color: ${K.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,wa=c().div`
	padding: 16px;
`,ba=({useOpenGraphData:t,useTwitterData:s})=>(0,e.createElement)(n.Fragment,null,s&&t&&(0,e.createElement)(n.Fragment,null,(0,e.createElement)(Xt,{hasSeparator:!1
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,title:(0,f.__)("Social media appearance","wordpress-seo"),initialIsOpen:!0},(0,e.createElement)(ya,null,(0,f.__)("Determine how your post should look on social media like Facebook, Twitter, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,e.createElement)(ua,null),(0,e.createElement)(fa,null,(0,f.__)("To customize the appearance of your post specifically for Twitter, please fill out the 'Twitter appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on Twitter.","wordpress-seo"))),(0,e.createElement)(Xt,{title:(0,f.__)("Twitter appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1},(0,e.createElement)(ga,null))),t&&!s&&(0,e.createElement)(wa,null,(0,e.createElement)(ya,null,(0,f.__)("Determine how your post should look on social media like Facebook, Twitter, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")),(0,e.createElement)(ua,null)),!t&&s&&(0,e.createElement)(wa,null,(0,e.createElement)(ya,null,(0,f.__)("To customize the appearance of your post specifically for Twitter, please fill out the 'Twitter appearance' settings below.","wordpress-seo")),(0,e.createElement)(ga,null)));ba.propTypes={useOpenGraphData:o().bool.isRequired,useTwitterData:o().bool.isRequired};const Ea=ba,va=(0,h.withSelect)((e=>{const{getPreferences:t}=e("yoast-seo/editor"),{useOpenGraphData:s,useTwitterData:n}=t();return{useOpenGraphData:s,useTwitterData:n}}))(Ea);function ka({target:e,children:t}){let s=e;return"string"==typeof e&&(s=document.getElementById(e)),s?(0,n.createPortal)(t,s):null}function _a({target:t}){return(0,e.createElement)(ka,{target:t},(0,e.createElement)(va,null))}ka.propTypes={target:o().oneOfType([o().string,o().object]).isRequired,children:o().node.isRequired},_a.propTypes={target:o().string.isRequired};const Ta=(0,_.makeOutboundLink)(),xa=c().div`
	padding: 16px;
`,Sa="yoast-seo/editor";function Ca({location:t,show:s}){return s?(0,e.createElement)(k.Alert,{type:"info"},(0,f.sprintf)(/* translators: %s Expands to "Yoast News SEO" */
(0,f.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,e.createElement)(Ta,{href:window.wpseoAdminL10n[`shortlinks.upsell.${t}.news`]},(0,f.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */
(0,f.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO"))):null}Ca.propTypes={show:o().bool.isRequired,location:o().string.isRequired};const Ra=(e,t,s)=>{const n=(0,h.useSelect)((e=>e(Sa).getIsProduct()),[]),a=(0,h.useSelect)((e=>e(Sa).getIsWooSeoActive()),[]),r=n&&a?{name:(0,f.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,f.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,f.__)("Default for %1$s (%2$s)","wordpress-seo"),s,r?r.name:""),value:""},...e]},Ia=e=>(0,f.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */
(0,f.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"{{link}}","{{/link}}");o().string.isRequired,o().string.isRequired,o().string.isRequired;const La=t=>{const s=Ra(t.pageTypeOptions,t.defaultPageType,t.postTypeName),a=Ra(t.articleTypeOptions,t.defaultArticleType,t.postTypeName),r=(0,i.get)(window,"wpseoScriptData.metabox.woocommerceUpsellSchemaLink",""),o=(0,i.get)(window,"wpseoScriptData.woocommerceUpsell",""),[l,c]=(0,n.useState)(t.schemaArticleTypeSelected),d=(0,f.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),u=(0,h.useSelect)((e=>e(Sa).getIsProduct()),[]),p=(0,h.useSelect)((e=>e(Sa).getIsWooSeoActive()),[]),m=u&&p,g=(0,n.useCallback)(((e,t)=>{c(t)}),[l]);return(0,n.useEffect)((()=>{g(null,t.schemaArticleTypeSelected)}),[t.schemaArticleTypeSelected]),(0,e.createElement)(n.Fragment,null,(0,e.createElement)(k.FieldGroup,{label:(0,f.__)("What type of page or content is this?","wordpress-seo"),linkTo:t.additionalHelpTextLink
/* translators: Hidden accessibility text. */,linkText:(0,f.__)("Learn more about page or content types","wordpress-seo")}),o&&(0,e.createElement)(Yt,{link:r,text:d}),(0,e.createElement)(k.Select,{id:(0,_.join)(["yoast-schema-page-type",t.location]),options:s,label:(0,f.__)("Page type","wordpress-seo"),onChange:t.schemaPageTypeChange,selected:m?"ItemPage":t.schemaPageTypeSelected,disabled:m}),t.showArticleTypeInput&&(0,e.createElement)(k.Select,{id:(0,_.join)(["yoast-schema-article-type",t.location]),options:a,label:(0,f.__)("Article type","wordpress-seo"),onChange:t.schemaArticleTypeChange,selected:t.schemaArticleTypeSelected,onOptionFocus:g}),(0,e.createElement)(Ca,{location:t.location,show:!t.isNewsEnabled&&(w=l,b=t.defaultArticleType,"NewsArticle"===w||""===w&&"NewsArticle"===b)}),t.displayFooter&&!m&&(0,e.createElement)("p",null,(y=t.postTypeName,(0,$.Z)({mixedString:Ia(y),components:{link:(0,e.createElement)("a",{href:"/wp-admin/admin.php?page=wpseo_page_settings",target:"_blank"})}}))),m&&(0,e.createElement)("p",null,(0,f.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,f.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")));var y,w,b},Pa=o().arrayOf(o().shape({name:o().string,value:o().string}));La.propTypes={schemaPageTypeChange:o().func,schemaPageTypeSelected:o().string,pageTypeOptions:Pa.isRequired,schemaArticleTypeChange:o().func,schemaArticleTypeSelected:o().string,articleTypeOptions:Pa.isRequired,showArticleTypeInput:o().bool.isRequired,additionalHelpTextLink:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,defaultPageType:o().string.isRequired,defaultArticleType:o().string.isRequired,location:o().string.isRequired,isNewsEnabled:o().bool},La.defaultProps={schemaPageTypeChange:()=>{},schemaPageTypeSelected:null,schemaArticleTypeChange:()=>{},schemaArticleTypeSelected:null,displayFooter:!1,isNewsEnabled:!1};const Aa=t=>t.isMetabox?(0,n.createPortal)((0,e.createElement)(xa,null,(0,e.createElement)(La,{...t})),document.getElementById("wpseo-meta-section-schema")):(0,e.createElement)(La,{...t});Aa.propTypes={showArticleTypeInput:o().bool,articleTypeLabel:o().string,additionalHelpTextLink:o().string,pageTypeLabel:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,isMetabox:o().bool.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,loadSchemaArticleData:o().func.isRequired,loadSchemaPageData:o().func.isRequired,location:o().string.isRequired},Aa.defaultProps={showArticleTypeInput:!1,articleTypeLabel:"",additionalHelpTextLink:"",displayFooter:!1};const Ma=Aa;class Fa{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Fa.articleTypeInput.getAttribute("data-default")}static get articleType(){return Fa.articleTypeInput.value}static set articleType(e){Fa.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Fa.pageTypeInput.getAttribute("data-default")}static get pageType(){return Fa.pageTypeInput.value}static set pageType(e){Fa.pageTypeInput.value=e}}const qa=t=>{const s=null!==Fa.articleTypeInput;(0,n.useEffect)((()=>{t.loadSchemaPageData(),s&&t.loadSchemaArticleData()}),[]);const{pageTypeOptions:a,articleTypeOptions:r}=window.wpseoScriptData.metabox.schema,o={articleTypeLabel:(0,f.__)("Article type","wordpress-seo"),pageTypeLabel:(0,f.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,f.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,f.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:s,pageTypeOptions:a,articleTypeOptions:r},i={...t,...o,...(l=t.location,"metabox"===l?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var l;return(0,e.createElement)(Ma,{...i})};qa.propTypes={displayFooter:o().bool.isRequired,schemaPageTypeSelected:o().string.isRequired,schemaArticleTypeSelected:o().string.isRequired,defaultArticleType:o().string.isRequired,defaultPageType:o().string.isRequired,loadSchemaPageData:o().func.isRequired,loadSchemaArticleData:o().func.isRequired,schemaPageTypeChange:o().func.isRequired,schemaArticleTypeChange:o().func.isRequired,location:o().string.isRequired};const Da=(0,g.compose)([(0,h.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:n,getArticleType:a,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:o,isNewsEnabled:i}=t();return{displayFooter:o,isNewsEnabled:i,schemaPageTypeSelected:s(),schemaArticleTypeSelected:a(),defaultArticleType:r(),defaultPageType:n()}})),(0,h.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:n,getSchemaArticleData:a}=e("yoast-seo/editor");return{loadSchemaPageData:n,loadSchemaArticleData:a,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),Rt()])(qa),Oa=()=>(0,e.createElement)("p",{className:"yoast-related-keyphrases-modal__loading-message"},(0,f.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Semrush". */
(0,f.__)("Please wait while %1$s connects to %2$s to get related keyphrases...","wordpress-seo"),"Yoast SEO","Semrush")," ",(0,e.createElement)(k.SvgIcon,{icon:"loading-spinner"})),Na=(0,_.makeOutboundLink)(),$a=()=>(0,e.createElement)(n.Fragment,null,(0,e.createElement)("p",null,(0,f.sprintf)(/* translators: %s : Expands to "Semrush". */
(0,f.__)("You've reached your request limit for today. Check back tomorrow or upgrade your plan over at %s.","wordpress-seo"),"Semrush")),(0,e.createElement)(Na,{href:window.wpseoAdminL10n["shortlinks.semrush.prices"],className:"yoast-button-upsell"},(0,f.sprintf)(/* translators: %s : Expands to "Semrush". */
(0,f.__)("Upgrade your %s plan","wordpress-seo"),"Semrush"),(0,e.createElement)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"}))),Wa="yoast-semrush-country-selector",Ba=[{value:"us",name:"United States - US"},{value:"uk",name:"United Kingdom - UK"},{value:"ca",name:"Canada - CA"},{value:"ru",name:"Russia - RU"},{value:"de",name:"Germany - DE"},{value:"fr",name:"France - FR"},{value:"es",name:"Spain - ES"},{value:"it",name:"Italy - IT"},{value:"br",name:"Brazil - BR"},{value:"au",name:"Australia - AU"},{value:"ar",name:"Argentina - AR"},{value:"be",name:"Belgium - BE"},{value:"ch",name:"Switzerland - CH"},{value:"dk",name:"Denmark - DK"},{value:"fi",name:"Finland - FI"},{value:"hk",name:"Hong Kong - HK"},{value:"ie",name:"Ireland - IE"},{value:"il",name:"Israel - IL"},{value:"mx",name:"Mexico - MX"},{value:"nl",name:"Netherlands - NL"},{value:"no",name:"Norway - NO"},{value:"pl",name:"Poland - PL"},{value:"se",name:"Sweden - SE"},{value:"sg",name:"Singapore - SG"},{value:"tr",name:"Turkey - TR"},{value:"jp",name:"Japan - JP"},{value:"in",name:"India - IN"},{value:"hu",name:"Hungary - HU"},{value:"af",name:"Afghanistan - AF"},{value:"al",name:"Albania - AL"},{value:"dz",name:"Algeria - DZ"},{value:"ao",name:"Angola - AO"},{value:"am",name:"Armenia - AM"},{value:"at",name:"Austria - AT"},{value:"az",name:"Azerbaijan - AZ"},{value:"bh",name:"Bahrain - BH"},{value:"bd",name:"Bangladesh - BD"},{value:"by",name:"Belarus - BY"},{value:"bz",name:"Belize - BZ"},{value:"bo",name:"Bolivia - BO"},{value:"ba",name:"Bosnia and Herzegovina - BA"},{value:"bw",name:"Botswana - BW"},{value:"bn",name:"Brunei - BN"},{value:"bg",name:"Bulgaria - BG"},{value:"cv",name:"Cabo Verde - CV"},{value:"kh",name:"Cambodia - KH"},{value:"cm",name:"Cameroon - CM"},{value:"cl",name:"Chile - CL"},{value:"co",name:"Colombia - CO"},{value:"cr",name:"Costa Rica - CR"},{value:"hr",name:"Croatia - HR"},{value:"cy",name:"Cyprus - CY"},{value:"cz",name:"Czech Republic - CZ"},{value:"cd",name:"Congo - CD"},{value:"do",name:"Dominican Republic - DO"},{value:"ec",name:"Ecuador - EC"},{value:"eg",name:"Egypt - EG"},{value:"sv",name:"El Salvador - SV"},{value:"ee",name:"Estonia - EE"},{value:"et",name:"Ethiopia - ET"},{value:"ge",name:"Georgia - GE"},{value:"gh",name:"Ghana - GH"},{value:"gr",name:"Greece - GR"},{value:"gt",name:"Guatemala - GT"},{value:"gy",name:"Guyana - GY"},{value:"ht",name:"Haiti - HT"},{value:"hn",name:"Honduras - HN"},{value:"is",name:"Iceland - IS"},{value:"id",name:"Indonesia - ID"},{value:"jm",name:"Jamaica - JM"},{value:"jo",name:"Jordan - JO"},{value:"kz",name:"Kazakhstan - KZ"},{value:"kw",name:"Kuwait - KW"},{value:"lv",name:"Latvia - LV"},{value:"lb",name:"Lebanon - LB"},{value:"lt",name:"Lithuania - LT"},{value:"lu",name:"Luxembourg - LU"},{value:"mg",name:"Madagascar - MG"},{value:"my",name:"Malaysia - MY"},{value:"mt",name:"Malta - MT"},{value:"mu",name:"Mauritius - MU"},{value:"md",name:"Moldova - MD"},{value:"mn",name:"Mongolia - MN"},{value:"me",name:"Montenegro - ME"},{value:"ma",name:"Morocco - MA"},{value:"mz",name:"Mozambique - MZ"},{value:"na",name:"Namibia - NA"},{value:"np",name:"Nepal - NP"},{value:"nz",name:"New Zealand - NZ"},{value:"ni",name:"Nicaragua - NI"},{value:"ng",name:"Nigeria - NG"},{value:"om",name:"Oman - OM"},{value:"py",name:"Paraguay - PY"},{value:"pe",name:"Peru - PE"},{value:"ph",name:"Philippines - PH"},{value:"pt",name:"Portugal - PT"},{value:"ro",name:"Romania - RO"},{value:"sa",name:"Saudi Arabia - SA"},{value:"sn",name:"Senegal - SN"},{value:"rs",name:"Serbia - RS"},{value:"sk",name:"Slovakia - SK"},{value:"si",name:"Slovenia - SI"},{value:"za",name:"South Africa - ZA"},{value:"kr",name:"South Korea - KR"},{value:"lk",name:"Sri Lanka - LK"},{value:"th",name:"Thailand - TH"},{value:"bs",name:"Bahamas - BS"},{value:"tt",name:"Trinidad and Tobago - TT"},{value:"tn",name:"Tunisia - TN"},{value:"ua",name:"Ukraine - UA"},{value:"ae",name:"United Arab Emirates - AE"},{value:"uy",name:"Uruguay - UY"},{value:"ve",name:"Venezuela - VE"},{value:"vn",name:"Vietnam - VN"},{value:"zm",name:"Zambia - ZM"},{value:"zw",name:"Zimbabwe - ZW"},{value:"ly",name:"Libya - LY"}];class Ua extends n.Component{constructor(e){super(e),this.relatedKeyphrasesRequest=this.relatedKeyphrasesRequest.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this)}componentDidMount(){this.props.response&&this.props.keyphrase===this.props.lastRequestKeyphrase||this.relatedKeyphrasesRequest()}storeCountryCode(e){Y()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}})}async relatedKeyphrasesRequest(){const{keyphrase:e,countryCode:t,newRequest:s}=this.props;s(t,e),this.storeCountryCode(t);const n=await this.doRequest(e,t);200!==n.status?this.handleFailedResponse(n):this.handleSuccessResponse(n)}handleSuccessResponse(e){const{setNoResultsFound:t,setRequestSucceeded:s}=this.props;0!==e.results.rows.length?s(e):t()}handleFailedResponse(e){const{setRequestLimitReached:t,setRequestFailed:s}=this.props;"error"in e&&(e.error.includes("TOTAL LIMIT EXCEEDED")?t():s(e))}async doRequest(e,t){return await Y()({path:(0,fs.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:e,country_code:t})})}onChangeHandler(e){this.props.setCountry(e)}render(){return(0,e.createElement)("div",{id:Wa},(0,e.createElement)(k.SingleSelect,{id:Wa+"-select",label:(0,f.__)("Show results for:","wordpress-seo"),name:"semrush-country-code",options:Ba,selected:this.props.countryCode,onChange:this.onChangeHandler,wrapperClassName:"yoast-field-group yoast-field-group--inline"}),(0,e.createElement)(k.NewButton,{id:Wa+"-button",variant:"secondary",onClick:this.relatedKeyphrasesRequest},(0,f.__)("Select country","wordpress-seo")))}}Ua.propTypes={keyphrase:o().string,countryCode:o().string,response:o().object,lastRequestKeyphrase:o().string,setCountry:o().func.isRequired,newRequest:o().func.isRequired,setNoResultsFound:o().func.isRequired,setRequestSucceeded:o().func.isRequired,setRequestLimitReached:o().func.isRequired,setRequestFailed:o().func.isRequired},Ua.defaultProps={keyphrase:"",countryCode:"us",response:{},lastRequestKeyphrase:""};const za=Ua,Ka=(0,_.makeOutboundLink)(c().a`
	display: inline-block;
	position: relative;
	outline: none;
	text-decoration: none;
	border-radius: 100%;
	width: 24px;
	height: 24px;
	margin: -4px 0;
	vertical-align: middle;

	color: ${K.colors.$color_help_text};
	
	&:hover,
	&:focus {
		color: ${K.colors.$color_snippet_focus};	
	}
	
	// Overwrite the default blue active color for links.
	&:active {
		color: ${K.colors.$color_help_text};	
	}

	&::before {
		position: absolute;
		top: 0;
		left: 0;
		padding: 2px;
		content: "\f223";
	}
`),Ha=(0,_.makeOutboundLink)();class Ya extends n.Component{constructor(e){super(e),this.transformTrendDataToChartPoints=this.transformTrendDataToChartPoints.bind(this),this.getAreaChartDataTableHeaderLabels=this.getAreaChartDataTableHeaderLabels.bind(this),this.mapAreaChartDataToTableData=this.mapAreaChartDataToTableData.bind(this)}transformTrendDataToChartPoints(e){return e.split(",").map(((e,t)=>({x:t,y:parseFloat(e)})))}getAreaChartDataTableHeaderLabels(){return[(0,f.__)("Twelve months ago","wordpress-seo"),(0,f.__)("Eleven months ago","wordpress-seo"),(0,f.__)("Ten months ago","wordpress-seo"),(0,f.__)("Nine months ago","wordpress-seo"),(0,f.__)("Eight months ago","wordpress-seo"),(0,f.__)("Seven months ago","wordpress-seo"),(0,f.__)("Six months ago","wordpress-seo"),(0,f.__)("Five months ago","wordpress-seo"),(0,f.__)("Four months ago","wordpress-seo"),(0,f.__)("Three months ago","wordpress-seo"),(0,f.__)("Two months ago","wordpress-seo"),(0,f.__)("Last month","wordpress-seo")]}mapAreaChartDataToTableData(e){return Math.round(100*e)}render(){const{keyphrase:t,relatedKeyphrases:s,countryCode:a,data:r,renderAction:o}=this.props,l="https://www.semrush.com/analytics/keywordoverview/?q="+encodeURIComponent(t)+"&db="+encodeURIComponent(a);return r&&!(0,i.isEmpty)(r.results)&&(0,e.createElement)(n.Fragment,null,(0,e.createElement)("table",{className:"yoast yoast-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"col",className:"yoast-table--primary"},(0,f.__)("Related keyphrase","wordpress-seo")),(0,e.createElement)("th",{scope:"col",abbr:(0,f.__)("Volume","wordpress-seo")},(0,f.__)("Volume","wordpress-seo"),(0,e.createElement)(Ka,{href:window.wpseoAdminL10n["shortlinks.semrush.volume_help"],className:"dashicons"},(0,e.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,f.__)("Learn more about the related keyphrases volume","wordpress-seo")))),(0,e.createElement)("th",{scope:"col",abbr:(0,f.__)("Trend","wordpress-seo")},(0,f.__)("Trend","wordpress-seo"),(0,e.createElement)(Ka,{href:window.wpseoAdminL10n["shortlinks.semrush.trend_help"],className:"dashicons"},(0,e.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,f.__)("Learn more about the related keyphrases trend","wordpress-seo")))),o&&(0,e.createElement)("td",{className:"yoast-table--nobreak"}))),(0,e.createElement)("tbody",null,r.results.rows.map(((t,n)=>{const a=t[0],r=this.transformTrendDataToChartPoints(t[2]),i=this.getAreaChartDataTableHeaderLabels();return(0,e.createElement)("tr",{key:n},(0,e.createElement)("td",null,a),(0,e.createElement)("td",null,t[1]),(0,e.createElement)("td",{className:"yoast-table--nopadding"},(0,e.createElement)(pe,{width:66,height:24,data:r,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",className:"yoast-related-keyphrases-modal__chart",mapChartDataToTableData:this.mapAreaChartDataToTableData,dataTableCaption:(0,f.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:i})),o&&(0,e.createElement)("td",{className:"yoast-table--nobreak"},o(a,s)))})))),(0,e.createElement)("p",{style:{marginBottom:0}},(0,e.createElement)(Ha,{href:l},(0,f.sprintf)(/* translators: %s expands to Semrush */
(0,f.__)("Get more insights at %s","wordpress-seo"),"Semrush"))))}}Ya.propTypes={data:o().object,keyphrase:o().string,relatedKeyphrases:o().array,countryCode:o().string,renderAction:o().func},Ya.defaultProps={data:{},keyphrase:"",relatedKeyphrases:[],countryCode:"us",renderAction:null};const ja=Ya,Va=(0,_.makeOutboundLink)(),Za=()=>(0,e.createElement)(k.Alert,{type:"info"},(0,f.sprintf)(/* translators: %s: Expands to "Yoast SEO". */
(0,f.__)("You’ll reach more people with multiple keyphrases! Want to quickly add these related keyphrases to the %s analyses for even better content optimization?","wordpress-seo"),"Yoast SEO")+" ",(0,e.createElement)(Va,{href:window.wpseoAdminL10n["shortlinks.semrush.premium_landing_page"]},(0,f.sprintf)(/* translators: %s: Expands to "Yoast SEO Premium". */
(0,f.__)("Explore %s!","wordpress-seo"),"Yoast SEO Premium"))),Ga=()=>(0,e.createElement)(k.Alert,{type:"error"},(0,f.__)("We've encountered a problem trying to get related keyphrases. Please try again later.","wordpress-seo")),Qa=()=>(0,e.createElement)(k.Alert,{type:"warning"},(0,f.sprintf)(/* translators: %s: Expands to "Yoast SEO". */
(0,f.__)("You've reached the maximum amount of 4 related keyphrases. You can change or remove related keyphrases in the %s metabox or sidebar.","wordpress-seo"),"Yoast SEO"));function Xa(t){const{response:s,lastRequestKeyphrase:a,keyphrase:r,newRequest:o,setCountry:l,renderAction:c,countryCode:d,requestLimitReached:u,setRequestFailed:p,setNoResultsFound:m,relatedKeyphrases:h,setRequestSucceeded:g,setRequestLimitReached:y}=t,w=Ts().isPremium;return(0,e.createElement)(n.Fragment,null,!u&&(0,e.createElement)(n.Fragment,null,!w&&(0,e.createElement)(Za,null),w&&function(e){return e&&e.length>=4}(h)&&(0,e.createElement)(Qa,null),(0,e.createElement)(za,{countryCode:d,setCountry:l,newRequest:o,keyphrase:r,setRequestFailed:p,setNoResultsFound:m,setRequestSucceeded:g,setRequestLimitReached:y,response:s,lastRequestKeyphrase:a})),function(t){const{isPending:s,requestLimitReached:n,isSuccess:a,response:r,requestHasData:o}=t;return s?(0,e.createElement)(Oa,null):n?(0,e.createElement)($a,null):!a&&function(e){return!(0,i.isEmpty)(e)&&"error"in e}(r)?(0,e.createElement)(Ga,null):o?void 0:(0,e.createElement)("p",null,(0,f.__)("Sorry, there's no data available for that keyphrase/country combination.","wordpress-seo"))}(t),(0,e.createElement)(ja,{keyphrase:r,relatedKeyphrases:h,countryCode:d,renderAction:c,data:s}))}Xa.propTypes={keyphrase:o().string,relatedKeyphrases:o().array,renderAction:o().func,requestLimitReached:o().bool,countryCode:o().string.isRequired,setCountry:o().func.isRequired,newRequest:o().func.isRequired,setRequestSucceeded:o().func.isRequired,setRequestLimitReached:o().func.isRequired,setRequestFailed:o().func.isRequired,setNoResultsFound:o().func.isRequired,response:o().object,lastRequestKeyphrase:o().string},Xa.defaultProps={keyphrase:"",relatedKeyphrases:[],renderAction:null,requestLimitReached:!1,response:{},lastRequestKeyphrase:""};const Ja=(0,g.compose)([(0,h.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:n,getSEMrushRequestResponse:a,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:o,getSEMrushRequestHasData:i,getSEMrushRequestKeyphrase:l}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:n(),response:a(),isSuccess:r(),isPending:o(),requestHasData:i(),lastRequestKeyphrase:l()}})),(0,h.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s,setSEMrushRequestSucceeded:n,setSEMrushRequestFailed:a,setSEMrushSetRequestLimitReached:r,setSEMrushNoResultsFound:o}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)},setRequestSucceeded:e=>{n(e)},setRequestFailed:e=>{a(e)},setRequestLimitReached:()=>{r()},setNoResultsFound:()=>{o()}}}))])(Xa),er=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,Nt((0,f.sprintf)(/* translators: 1: Opening a html tag, 2: Closing a html tag. 3: WordProof. 4. WordPress */
(0,f.__)("Something went wrong authenticating your %3$s account with the %4$s site. Please try again or contact %1$s%3$s support%2$s.","wordpress-seo"),"<a>","</a>","WordProof","WordPress"),"https://help.wordproof.com/")));var tr,sr,nr,ar,rr,or,ir,lr,cr,dr,ur,pr,mr,hr,gr,fr,yr,wr,br,Er,vr,kr,_r,Tr,xr,Sr,Cr,Rr,Ir,Lr,Pr,Ar,Mr,Fr,qr,Dr,Or,Nr,$r,Wr,Br,Ur,zr,Kr,Hr,Yr,jr,Vr;function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Zr.apply(this,arguments)}const Gr=t=>e.createElement("svg",Zr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},t),tr||(tr=e.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),sr||(sr=e.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92Z"})),nr||(nr=e.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12Z"})),ar||(ar=e.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55Z"})),rr||(rr=e.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39Z"})),or||(or=e.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36Z"})),ir||(ir=e.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49Z"})),lr||(lr=e.createElement("path",{fill:"#efb17c",d:"M277.68 178.82Z"})),cr||(cr=e.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73Z"})),dr||(dr=e.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23Z"})),ur||(ur=e.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39ZM241.38 103c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93Z"})),pr||(pr=e.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82Z"})),mr||(mr=e.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),hr||(hr=e.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53Z"})),gr||(gr=e.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22Z"})),fr||(fr=e.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),yr||(yr=e.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78Z"})),wr||(wr=e.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45ZM263.38 78.47c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33Z"})),br||(br=e.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55Z"})),Er||(Er=e.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),vr||(vr=e.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67Z"})),kr||(kr=e.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23Z"})),_r||(_r=e.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8Z"})),Tr||(Tr=e.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10ZM39.62 72.9c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96ZM86.05 87.48c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24M85.83 102.19c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44Z"})),xr||(xr=e.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Sr||(Sr=e.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Cr||(Cr=e.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Rr||(Rr=e.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),Ir||(Ir=e.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Lr||(Lr=e.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Pr||(Pr=e.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Ar||(Ar=e.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Mr||(Mr=e.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Fr||(Fr=e.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),qr||(qr=e.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Dr||(Dr=e.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Or||(Or=e.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Nr||(Nr=e.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),$r||($r=e.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Wr||(Wr=e.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),Br||(Br=e.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Ur||(Ur=e.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),zr||(zr=e.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),Kr||(Kr=e.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Hr||(Hr=e.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36Z"})),Yr||(Yr=e.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3Z"})),jr||(jr=e.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Vr||(Vr=e.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),Qr=t=>{const{closeModal:s}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"yoast-wordproof-modal-image"},(0,e.createElement)(Gr,{class:"yoast-wordproof-modal-svg__success"})),(0,e.createElement)("p",null,(0,f.sprintf)(/* Translators: %s translates to the Post type in singular form */
(0,f.__)("Your %s is now protected via the blockchain!","wordpress-seo"),Hs("current_post_type")),(0,e.createElement)("br",null),(0,n.createInterpolateElement)((0,f.sprintf)((0,f.__)(
/** translators:
   * %1$s and %2$s are replaced by opening and closing <b> tags.
   * %3$s translates to the Post type in singular form.
   */
"The %3$s will automatically be timestamped every time you %1$supdate%2$s or %1$spublish%2$s.","wordpress-seo"),"<b>","</b>",Hs("current_post_type")),{b:(0,e.createElement)("b",null)})),(0,e.createElement)("div",{className:"yoast-wordproof-modal-action"},(0,e.createElement)(k.NewButton,{variant:"primary",onClick:s},"Continue")))};Qr.propTypes={closeModal:o().func.isRequired};const Xr=Qr;var Jr;function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},eo.apply(this,arguments)}const to=t=>e.createElement("svg",eo({xmlns:"http://www.w3.org/2000/svg",fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",viewBox:"0 0 752 247"},t),Jr||(Jr=e.createElement("g",{stroke:"none",className:"connection-assistant_svg__B"},e.createElement("path",{fill:"#f17523",d:"M307.671 13.343C314.3 6.76 322.367.552 332.022-.127c5.029-.88 10.204-.124 15.012 1.447 3.588 1.147 6.294 3.893 8.763 6.605 3.333-1.582 7.09-1.837 10.73-1.803 3.35-.13 6.796.842 9.52 2.803 4.045 3.932 7.322 8.847 8.678 14.367.711 3.808 1.084 7.888-.22 11.616.824 2.334 4.61 2.746 3.96 5.628-.706 2.373-2.616 4.209-4.356 5.898l-.61.543c-2.532.644-4.605 2.203-5.888 4.474-.322-1.92-2.644-1.864-3.955-2.842-5.977-3.813-10.734-9.52-13.356-16.119-1.266-3.435-2.768-6.938-2.475-10.684-2.983.661-6 1.86-8.068 4.198-2.977 2.887-4.452 6.831-6.819 10.164-1.746 2.334-1.825 5.453-3.56 7.786-1.118 1.7-3 2.599-4.587 3.774 1.378.305 2.898.373 4.073 1.243 1.113.944.673 2.898-.632 3.424-2.255.288-4.577-.26-6.803.305-2.825.898-4.994 3.023-7.011 5.09-.91 1.035-2.61-.22-2.441-1.418-.192-1.406.955-2.412 1.66-3.48-2.7.898-5.525 1.21-8.316 1.593-1.508 1.243-2.819 2.763-4.022 4.306-1.537-1.345-3.057-3.22-5.34-2.91 1.204 1.7 2.86 2.989 4.475 4.271.249 5.39 1.774 10.594 3.271 15.74.616 2.266 2.52 3.809 4.334 5.137 3.542 2.22 7.497 3.74 10.995 6.022 1.819 3.029 3.35 6.255 4.469 9.616.559 1.373 1.005 3.046 2.503 3.684 4.638 2.6 9.808 4 14.712 6.006 3.955-2.068 7.695-4.52 11.531-6.791.616-.463 1.503-.785 1.718-1.605 1.056-3.847 1.74-7.785 2.746-11.638.74-2.645 2.96-4.447 4.706-6.436 2.266-2.65 5.565-4.457 7-7.774.255-5.853.294-11.746-.621-17.554 1.294-1.633 2.508-3.328 3.797-4.96.05 3.101.536 6.163.983 9.226.26 3.66.35 7.339.712 10.988.067.746.242 1.498.683 2.114 2.334 3.045 7.08 3.785 10.311 1.762-1 3.289-3.932 5.362-6.226 7.707-.073.655.237 1.271.396 1.898 1.096 2.554 1.163 5.752-1.164 7.65.943 2.051 1.689 4.322 1.14 6.6-.208 1.463-1.536 2.287-2.604 3.118.175 2.079 1.04 4.26.181 6.294-1.113 1.842-3.266 2.599-5.175 3.328-.413 1.66-.769 3.457-2.04 4.706-1.034 1.18-2.723 1.153-4.13 1.492-1.13 2.248-2.537 4.655-4.96 5.678-2.125.548-4.25-.34-6.34-.673-1.525 1.6-3.101 3.385-5.373 3.86-2.39.796-4.712-.6-6.78-1.645-1.638 1.215-3.423 2.6-5.599 2.334-2.344.146-3.972-1.633-5.53-3.074-2.12 1.08-4.566 2-6.945 1.198-2.209-.537-3.356-2.656-4.604-4.35-2.825-.029-5.978-.029-8.226-2.006-1.695-1.322-2.362-3.424-3.034-5.368-1.916-.305-4.142-.367-5.526-1.932-1.35-1.605-2.31-3.554-2.83-5.588-.566-2.305.638-4.497 1.028-6.723-.95-1.085-2.43-1.565-3.582-2.418-3.136-1.577-3.548-5.6-2.424-8.571-1.565-1.107-2.836-2.548-4.22-3.853 3.463-.023 7.056-1.904 8.028-5.424.847-2.21.802-4.616.599-6.938-.43-4.531-1.509-8.967-2.435-13.413-.464-2.074-3.023-2.011-4.447-3.136-2.265-1.644-4.593-4.119-4.102-7.147 1.125-1.881 3.102-3.266 3.47-5.56-2.792-4.276-1.882-9.565-.927-14.26 1.44-5.215 3.83-10.328 7.768-14.13zm22.78 19.356c-2.655 2.78-4.39 6.238-6.282 9.543 2.271-.904 3.955-2.808 5.661-4.492 3.656-3.966 7.775-8.073 9.006-13.509-3.254 2.35-5.746 5.475-8.384 8.458zm3.74 8.317c-1.027 1.622-2.383 2.989-3.423 4.599 3.955-2.147 7.057-6.271 7.373-10.82-1.61 1.882-2.469 4.25-3.95 6.221zm18.42 7.673c4.3-2.515 10.073-3.125 14.322-.136 1.492.588 2.13 2.848.605 3.774-1.396 1.102-2.74-.424-4.074-.797-3.864-1.028-7.786.543-11.108 2.435-.853-.457-2.045-1.017-1.994-2.163-.215-1.498 1.232-2.34 2.249-3.113z"}),e.createElement("path",{fill:"#fccda3",d:"M349.757 26.004c2.068-2.339 5.085-3.537 8.068-4.198-.293 3.746 1.21 7.25 2.475 10.684 2.622 6.6 7.379 12.306 13.356 16.12 1.311.977 3.633.92 3.955 2.841-2.084 2.876-4.356 5.622-6.361 8.554-1.899.644-3.809 1.266-5.78 1.656-1.402-4.707-7.797-6.023-11.47-3.193-.966.87-1.593 2.034-2.18 3.176-1.424-1.3-3.006-2.86-5.108-2.667-2.994.21-5.362 2.44-7.057 4.74-.796-2.859-3.43-5.13-6.452-5.09-3.893-.435-7.384 2.79-8.045 6.503-1.842.079-3.701.316-5.537.107-3.012-1.808-5.684-4.147-8.322-6.446 1.203-1.543 2.514-3.063 4.022-4.306 2.791-.384 5.616-.695 8.317-1.593-.706 1.068-1.853 2.074-1.661 3.48-.17 1.198 1.53 2.452 2.44 1.418 2.018-2.067 4.187-4.192 7.012-5.09 2.226-.565 4.548-.017 6.803-.305 1.305-.526 1.745-2.48.632-3.424-1.175-.87-2.695-.938-4.073-1.243 1.587-1.175 3.469-2.073 4.588-3.774 1.734-2.333 1.813-5.452 3.559-7.786 2.367-3.333 3.842-7.277 6.82-10.164zm2.853 22.685c-1.017.774-2.463 1.615-2.248 3.113-.051 1.147 1.141 1.706 1.994 2.164 3.322-1.893 7.243-3.464 11.108-2.435 1.333.372 2.678 1.898 4.074.796 1.525-.926.887-3.186-.605-3.774-4.249-2.989-10.023-2.379-14.322.136zm-22.158-15.99c2.638-2.983 5.13-6.107 8.384-8.458-1.232 5.436-5.35 9.543-9.006 13.51-1.706 1.683-3.39 3.587-5.661 4.491 1.893-3.305 3.627-6.763 6.283-9.543zm3.74 8.317c1.48-1.972 2.339-4.34 3.95-6.22-.317 4.548-3.419 8.672-7.374 10.819 1.04-1.61 2.396-2.978 3.424-4.599zm49.307 5.96.61-.542c1.678-.53 3.339.921 4.09 2.34 2.656 4.208 3.39 9.44 2.367 14.271-1.04 3.509-2.638 7.503-6.508 8.616l-.085.266c-.44-.616-.616-1.368-.684-2.113-.361-3.65-.452-7.328-.711-10.99-.447-3.062-.933-6.124-.984-9.226a37.81 37.81 0 0 0 1.905-2.621zm-84.11 8.357c.542-.526 1.203-1.622 2.073-.893 1.424 1.125 3.983 1.062 4.447 3.136.926 4.446 2.005 8.882 2.435 13.413.203 2.322.248 4.729-.6 6.938-1.49-.243-3.044-.548-4.203-1.582-4.497-3.695-6.599-9.74-6.119-15.464.243-1.932.532-4.096 1.967-5.548zm74.019 5.085 4.39-5.86c.915 5.809.876 11.702.621 17.555-1.435 3.317-4.734 5.124-7 7.774-1.746 1.989-3.966 3.791-4.706 6.436-1.006 3.853-1.69 7.79-2.746 11.638-.215.82-1.102 1.142-1.718 1.605-3.836 2.271-7.576 4.723-11.531 6.791-4.904-2.006-10.074-3.407-14.712-6.006-1.498-.638-1.944-2.31-2.503-3.684-1.119-3.361-2.65-6.587-4.47-9.616-3.497-2.282-7.452-3.802-10.994-6.022-1.814-1.328-3.718-2.87-4.334-5.136-1.497-5.147-3.022-10.35-3.27-15.74 3.135 2.203 5.559 5.44 9.112 7.016 1.882.108 3.763-.056 5.645-.079.135 3.147 1.943 6.334 4.966 7.498 2.085.712 4.723.96 6.492-.627 2.322-1.786 3.164-4.78 3.435-7.577 1.768-2.05 3.3-4.723 6.147-5.367 2.35-.452 3.825 1.808 5.158 3.339-.17 2.4.678 4.774 2.187 6.627 2.83 3.656 9.644 2.729 11.283-1.633.841-1.74.66-3.717.683-5.593 2.181-.548 4.362-1.13 6.475-1.921.661-.215.96-.921 1.39-1.418zm-26.12 21.47c-2.717.372-5.231-1.865-7.96-1.244 2.011 1.955 4.678 3.424 7.401 4.029 3.158-.887 5.927-3 7.904-5.582-2.69.079-4.938 1.796-7.345 2.796zm13.577 1.423c-6.751 2.22-13.3 5.175-20.306 6.526.678.808 1.74.955 2.746.78 5.515-.78 10.65-3.029 15.876-4.831 1.69-.684 3.48-1.424 4.65-2.893-1.005.034-2.017.085-2.966.418zm43.905 73.37c2.842-.673 6.017-1.232 8.746.146 2.498 1.385 5.147 2.577 7.323 4.464 2.638 2.316 4.655 5.232 6.514 8.192 1.57 2.65 2.147 5.73 2.316 8.769.305 1.56.3 3.158.085 4.734-.503 3.752-.361 7.814-2.249 11.21-2.18 2.418-5.243 3.768-7.802 5.729-2.729 2.011-6.407 1.457-9.243-.023-2.497 2.56-7.198 3.983-10.046 1.226-2.09.3-4.096 1.407-6.248.96-1.718-.084-3.085-1.327-4.142-2.57-1.062-1.418-.232-3.181-.028-4.729 1.164-7.707 2.04-15.492 4.096-23.029-4.972.678-10.238 1.09-15.085-.458-1.746-.61-3.82-1.248-4.43-3.22-1.237-2.074-.395-5.136 2.09-5.752 3.905-.214 7.747 1.814 11.657 1.096 5.316-2.599 10.695-5.226 16.446-6.746zm-95.906 18.96c3.344-1.18 6.966-2.457 10.525-1.44 2.272 1.395 4.266 3.277 5.86 5.412 3.485 4.701 6.717 9.588 9.508 14.741.802 1.48 2.04 3.147 1.215 4.904-.746 2.068-3.147 2.356-5.029 2.622-1.938.339-3.345-1.322-4.446-2.656-3.627-4.887-6.232-10.672-10.921-14.684 2.463 4.226 4.7 8.594 6.616 13.102 1.005 2.385 1.231 4.99 2.067 7.419.673 1.542.385 3.598-1.27 4.372-2.357.61-4.837 1.097-7.278.78-1.215-.135-2.175-1.05-3.373-1.22-1.542.424-2.96 1.237-4.542 1.537-2.588.632-5.277-.13-7.87.497-2.882.678-5.877.101-8.594-.927-3.17-1.265-5.345-4.113-6.848-7.073a20.88 20.88 0 0 1-1.565-3.955 31.05 31.05 0 0 1-.367-8.916c.209-2.158 2.215-3.322 3.893-4.305 7.367-3.627 14.418-8.063 22.419-10.21z"}),e.createElement("path",{fill:"#847972",d:"M377.611 51.451c1.283-2.27 3.356-3.83 5.888-4.474l-1.904 2.621-3.797 4.96-4.39 5.86c-.43.497-.73 1.203-1.39 1.418-2.113.79-4.294 1.373-6.475 1.92l-.073-2.095c1.972-.39 3.881-1.012 5.78-1.656 2.005-2.932 4.277-5.678 6.361-8.554zm-71.652 4.43c2.283-.31 3.803 1.565 5.34 2.91 2.638 2.3 5.31 4.638 8.322 6.446 1.836.21 3.695-.028 5.537-.107l.034 1.96c-1.882.023-3.763.187-5.645.08-3.553-1.577-5.977-4.814-9.113-7.018-1.616-1.282-3.271-2.57-4.475-4.271zm33.696 7.836c1.695-2.3 4.063-4.53 7.057-4.74 2.102-.192 3.684 1.367 5.108 2.667l-.43 2.712c-1.333-1.531-2.808-3.791-5.158-3.34-2.848.645-4.379 3.317-6.147 5.368l-.43-2.667z"}),e.createElement("path",{d:"M354 58.469c3.673-2.831 10.069-1.515 11.47 3.192l.073 2.096c-.022 1.876.158 3.853-.683 5.593-1.639 4.362-8.453 5.289-11.283 1.633-1.509-1.853-2.356-4.226-2.187-6.627.096-.91.243-1.814.43-2.712.587-1.141 1.214-2.305 2.18-3.175zm5.181 5.887c-2.565 1.294-3.452 5.328-1.367 7.424 2.656 1.91 5.865-1.362 5.464-4.142.542-2.328-2.046-3.96-4.097-3.282zm-34.023.774c.66-3.712 4.152-6.938 8.045-6.503 3.023-.04 5.656 2.231 6.452 5.09.164.882.305 1.774.43 2.667-.272 2.797-1.113 5.791-3.435 7.577-1.769 1.587-4.407 1.338-6.492.627-3.023-1.164-4.83-4.35-4.966-7.498l-.034-1.96zm7.627 1.525c-3.034 1.486-2.842 7.368.955 7.644 3.424.006 4.977-4.508 3.345-7.141-1.074-1.141-2.984-1.401-4.3-.503zm27.77-.43c1.316-.615 1.779 2.153.316 1.848-.933.125-1.215-1.672-.317-1.847zm-25.889 2.26c.758-1.344 2.515.61 1.34 1.317-.82.95-1.712-.565-1.34-1.316z"}),e.createElement("path",{fill:"#3e2723",d:"M359.181 64.356c2.051-.678 4.639.955 4.097 3.282.4 2.78-2.808 6.051-5.464 4.142-2.085-2.096-1.198-6.13 1.367-7.424zm1.373 1.87c-.898.175-.615 1.972.317 1.847 1.463.305 1-2.463-.317-1.847zm-27.769.43c1.316-.9 3.226-.64 4.3.502 1.633 2.633.079 7.147-3.345 7.141-3.797-.276-3.989-6.158-.955-7.644zm1.881 1.83c-.372.751.52 2.265 1.34 1.316 1.175-.706-.582-2.661-1.34-1.316zm337.48 82.296 79.115-9.526v4.74l-58.228 7.097-81.867 9.379L505.74 175.94c-10.77 1.684-21.623 2.718-32.437 4.023l-21.203 1.723c-7.447.469-14.877 1.401-22.346 1.3.215-1.577.22-3.176-.085-4.735 6.26.005 12.492-.616 18.735-1.068 11.984-1.006 24.024-1.605 35.928-3.407 14.955-1.3 29.724-4.102 44.606-5.994 47.645-6.385 95.432-11.656 143.208-17.001zm-299.213 21.696 6.074-1.176c4.848 1.549 10.113 1.136 15.085.458-2.056 7.537-2.932 15.323-4.096 23.029-3.695.814-7.424 1.463-11.13 2.226-.441-1.667-.718-3.379-1.238-5.023-1.938-.293-3.994.769-6.011.803-1.271-.034-3.328.672-3.91-.899-.621-.875.26-1.887 1.017-2.3 2.463-1.293 5.311-1.446 7.893-2.417l-1.446-5.854c-3.074.39-6.08 1.543-9.204 1.305-1.373-.491-1.525-2.678-.232-3.327 2.582-1.294 5.52-1.605 8.238-2.56l-1.04-4.265zm-47.685 7.135 15.334-2.005c2.164 7.717 3.509 15.639 4.684 23.56-6.916 1.69-13.955 2.915-21.007 3.892-.836-2.429-1.062-5.034-2.067-7.418-1.916-4.508-4.153-8.876-6.616-13.102 4.689 4.012 7.294 9.797 10.92 14.684 1.102 1.334 2.51 2.995 4.447 2.656 1.882-.266 4.283-.554 5.029-2.622.824-1.757-.413-3.424-1.215-4.904-2.791-5.153-6.023-10.04-9.509-14.74zM249.545 200.7c7.695-.706 15.447-.413 23.142-1.153 3.402-.3 6.814-.53 10.232-.474.379 1.367.915 2.689 1.565 3.955-3.361.118-6.723.31-10.062.706-8.43 1.118-16.955 1.079-25.425 1.785-12.045.989-24.153.554-36.204 1.458l-1.023.424c-.723-.356-1.525-.39-2.31-.328-10.165.763-20.363.435-30.55.593l-75.685.011c-27.877-.101-55.754.266-83.624-.305-6.701-.712-13.464-1.135-20.1-2.339v-2.904l18.964.69 25.99.112 140.653-.062c8.809-.005 17.634-.079 26.425-.52 12.639-1.163 25.368-.548 38.012-1.65z"}),e.createElement("path",{fill:"#dba378",d:"M347.288 81.887c2.407-1 4.656-2.717 7.345-2.796-1.977 2.582-4.746 4.695-7.904 5.582-2.723-.605-5.39-2.074-7.401-4.029 2.729-.621 5.243 1.616 7.96 1.243zm13.577 1.424c.95-.333 1.96-.384 2.966-.418-1.17 1.469-2.96 2.21-4.65 2.893-5.226 1.802-10.362 4.05-15.876 4.83-1.005.175-2.068.029-2.746-.78 7.006-1.35 13.554-4.305 20.306-6.525z"}),e.createElement("path",{fill:"#bf360c",d:"M388.453 83.294c10.408.7 20.865 1.057 31.16 2.893 14.006 2.57 27.938 5.548 41.797 8.842 4.837 1.073 9.47 2.864 14.159 4.435 3.277 1.136 6.633 2.074 9.757 3.616 5.537 2.678 11.684 4.31 16.526 8.26 5.61 4.215 9.52 10.385 11.944 16.905 1.859 6.474 1.367 13.43-.265 19.893-.701 4.198-2.684 8.17-5.594 11.271-3.684 3.56-8.107 6.227-12.373 9.012-3.446 2.356-7.43 3.695-11.232 5.356-11.904 1.802-23.944 2.401-35.928 3.407-6.243.452-12.475 1.073-18.735 1.068-.17-3.04-.745-6.12-2.316-8.769-1.859-2.96-3.876-5.876-6.514-8.192-2.176-1.887-4.825-3.08-7.323-4.464-2.729-1.378-5.904-.819-8.746-.146-5.751 1.52-11.13 4.147-16.446 6.745-3.91.718-7.752-1.31-11.656-1.096-2.486.616-3.328 3.678-2.09 5.752.61 1.972 2.683 2.61 4.429 3.22-2.045.294-4.063.74-6.074 1.176.367 1.412.712 2.836 1.04 4.265-2.718.955-5.656 1.266-8.238 2.56-1.294.65-1.141 2.836.232 3.327 3.124.238 6.13-.915 9.204-1.305.525 1.938.988 3.893 1.446 5.854-2.582.971-5.43 1.124-7.893 2.418-.757.412-1.638 1.424-1.017 2.3.582 1.57 2.639.864 3.91.898 2.017-.034 4.073-1.096 6.011-.803.52 1.644.797 3.356 1.238 5.023l11.13-2.226c-.204 1.548-1.034 3.31.028 4.729 1.057 1.243 2.424 2.486 4.142 2.57 2.152.447 4.158-.66 6.248-.96 2.848 2.757 7.549 1.334 10.046-1.226 2.836 1.48 6.514 2.034 9.243.023 2.56-1.96 5.622-3.311 7.802-5.73 1.888-3.395 1.746-7.457 2.25-11.209 7.468.102 14.898-.83 22.344-1.3.35 7.77 1.153 15.504 1.554 23.262-.028 4.14.757 8.226.785 12.361.187 9.718-.073 19.436-.05 29.148-65.155-.028-130.31.006-195.464-.017l.95-16.633c.112-5.08.05-10.158.073-15.238-6.588 1.707-13.487 2.034-20.25 1.498-9.808-.605-19.616-3.35-27.927-8.667l1.023-.424c12.051-.904 24.159-.47 36.204-1.458 8.47-.706 16.995-.667 25.425-1.785 3.339-.396 6.7-.588 10.062-.706 1.503 2.96 3.678 5.808 6.848 7.073 2.717 1.028 5.712 1.605 8.593.927 2.594-.627 5.283.135 7.87-.497 1.583-.3 3-1.113 4.543-1.537 1.198.17 2.158 1.085 3.373 1.22 2.44.317 4.921-.17 7.277-.78 1.656-.774 1.944-2.83 1.271-4.372 7.052-.978 14.091-2.204 21.007-3.893-1.175-7.921-2.52-15.843-4.684-23.56l-15.334 2.005c-1.593-2.135-3.587-4.017-5.859-5.412-3.56-1.017-7.18.26-10.525 1.44-8 2.147-15.052 6.583-22.42 10.21-1.677.983-3.683 2.147-3.892 4.305a31.05 31.05 0 0 0 .367 8.916c-3.418-.057-6.83.175-10.232.474-7.695.74-15.447.447-23.142 1.153-12.644 1.102-25.373.486-38.012 1.65a63.323 63.323 0 0 0-5.48-.057c-4.289-4.35-7.035-10.006-8.283-15.95-.497-2.904.39-5.762 1.005-8.576 1.012-5.17 3.712-9.803 6.628-14.12 3.18-4.677 7.492-8.384 11.424-12.395 2.237-2.622 4.57-5.204 7.39-7.22 4.548-3.6 9.226-7.03 13.983-10.357 10.04-7.26 20.696-13.593 31.075-20.345 4.712-3.266 10.085-5.345 15.153-7.972 5.034-2.379 9.927-5.124 15.266-6.786a44.715 44.715 0 0 0 6.667-2.796c1.152.853 2.632 1.333 3.582 2.418-.39 2.226-1.594 4.418-1.029 6.723.52 2.034 1.48 3.983 2.83 5.588 1.385 1.565 3.611 1.627 5.527 1.932.672 1.944 1.339 4.046 3.034 5.368 2.248 1.977 5.4 1.977 8.226 2.005 1.248 1.695 2.395 3.814 4.604 4.35 2.379.803 4.825-.118 6.944-1.197 1.56 1.44 3.187 3.22 5.531 3.074 2.176.265 3.96-1.12 5.6-2.334 2.067 1.045 4.39 2.44 6.78 1.644 2.27-.474 3.847-2.26 5.372-3.859 2.09.334 4.215 1.22 6.34.673 2.423-1.023 3.83-3.43 4.96-5.678 1.407-.34 3.096-.311 4.13-1.492 1.271-1.249 1.627-3.045 2.04-4.706 1.91-.73 4.062-1.486 5.175-3.328.859-2.034-.006-4.215-.18-6.294 1.067-.83 2.395-1.656 2.604-3.119.548-2.277-.198-4.548-1.141-6.599 2.327-1.898 2.26-5.096 1.163-7.65z"})))),so=t=>{const{closeModal:s}=t,a=(0,n.useCallback)((e=>{s(),e.preventDefault(),Vs()}));return(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"yoast-wordproof-modal-image"},(0,e.createElement)(to,{className:"yoast-wordproof-modal-svg__webhook-failed"})),(0,e.createElement)("div",null,(0,f.__)("There was a connection problem. This could be because your third party connections are blocked.","wordpress-seo"),(0,e.createElement)("br",null),Nt((0,f.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,f.__)("Find possible solutions in this %1$sArticle%2$s.","wordpress-seo"),"<a>","</a>"),"https://help.wordproof.com/en/articles/4823201-how-do-i-whitelist-wordproof-in-cloudflare")),(0,e.createElement)("div",{className:"yoast-wordproof-modal-action"},(0,e.createElement)(k.NewButton,{variant:"secondary",onClick:a},(0,f.__)("Try again","wordpress-seo"))),(0,e.createElement)("div",null,Nt((0,f.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags. %3$s expands to WordProof.
(0,f.__)("Not working? %1$sContact %3$s support%2$s.","wordpress-seo"),"<a>","</a>","WordProof"),"https://help.wordproof.com")))};so.propTypes={closeModal:o().func.isRequired};const no=so,ao=()=>{const[t,s]=(0,n.useState)(null),a=(0,n.useCallback)((()=>{s("oauth:failed")})),r=(0,n.useCallback)((()=>{s("webhook:failed")})),o=(0,n.useCallback)((()=>{s("oauth:success")})),i=(0,n.useCallback)((()=>{s(null)}));(0,n.useEffect)((()=>(window.addEventListener("wordproof:oauth:success",o,!1),window.addEventListener("wordproof:oauth:failed",a,!1),window.addEventListener("wordproof:webhook:failed",r,!1),()=>{window.removeEventListener("wordproof:oauth:success",o,!1),window.removeEventListener("wordproof:oauth:failed",a,!1),window.removeEventListener("wordproof:webhook:failed",r,!1)})),[]);const l=(0,n.useCallback)((()=>{switch(t){case"webhook:failed":return(0,f.__)("Connection failed","wordpress-seo");case"oauth:success":return(0,f.__)("Connected to WordProof","wordpress-seo");default:return(0,f.__)("WordProof authentication","wordpress-seo")}}));return(0,e.createElement)(e.Fragment,null,t&&(0,e.createElement)(R,{onRequestClose:i,additionalClassName:"yoast-wordproof-modal",title:l()},"oauth:success"===t&&(0,e.createElement)(Xr,{closeModal:i}),"oauth:failed"===t&&(0,e.createElement)(er,null),"webhook:failed"===t&&(0,e.createElement)(no,{closeModal:i})))},ro=(0,f.__)("Check your text on even more SEO criteria and get an enhanced keyphrase analysis, making it easier to optimize your content.","wordpress-seo"),oo=t=>{const{locationContext:s}=(0,d.useRootContext)(),n=(0,fs.addQueryArgs)(wpseoAdminL10n[t.buyLink],{context:s});return(0,e.createElement)(Bs,{title:(0,f.__)("Get more help with writing content that ranks","wordpress-seo"),description:t.description,benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
(0,f.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Ls(),upsellButtonText:(0,f.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,f.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:n,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,f.__)("1 year of premium support and updates included!","wordpress-seo")})};oo.propTypes={buyLink:o().string.isRequired,description:o().string},oo.defaultProps={description:ro};const io=oo,lo=({location:t})=>{const[s,a]=(0,n.useState)(!1),r=(0,n.useCallback)((()=>a(!1)),[]),o=(0,n.useCallback)((()=>a(!0)),[]),i=(0,Kt.useSvgAria)();return(0,e.createElement)(n.Fragment,null,s&&(0,e.createElement)(R,{title:(0,f.__)("Unlock Premium SEO analysis","wordpress-seo"),onRequestClose:r,additionalClassName:"",className:`${S} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,id:"yoast-premium-seo-analysis-modal",shouldCloseOnClickOutside:!0},(0,e.createElement)(x,null,(0,e.createElement)(io,{buyLink:`shortlinks.upsell.${t}.premium_seo_analysis_button`}))),"sidebar"===t&&(0,e.createElement)(F,{id:"yoast-premium-seo-analysis-modal-open-button",title:(0,f.__)("Premium SEO analysis","wordpress-seo"),prefixIcon:{icon:"seo-score-none",color:K.colors.$color_grey},onClick:o},(0,e.createElement)("div",{className:"yst-root"},(0,e.createElement)(Kt.Badge,{size:"small",variant:"upsell"},(0,e.createElement)(Is,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...i})))),"metabox"===t&&(0,e.createElement)("div",{className:"yst-root"},(0,e.createElement)(v,{id:"yoast-premium-seo-analysis-metabox-modal-open-button",onClick:o},(0,e.createElement)(k.SvgIcon,{icon:"seo-score-none",color:K.colors.$color_grey}),(0,e.createElement)(v.Text,null,(0,f.__)("Premium SEO analysis","wordpress-seo")),(0,e.createElement)(Kt.Badge,{size:"small",variant:"upsell"},(0,e.createElement)(Is,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...i}),(0,e.createElement)("span",null,"Premium")))))};lo.propTypes={location:o().string},lo.defaultProps={location:"sidebar"};const co=lo,uo=t=>(0,e.createElement)(Bs,{title:(0,f.__)("Reach a wider audience","wordpress-seo"),description:(0,f.__)("Get help optimizing for up to 5 related keyphrases. This helps you reach a wider audience and get more traffic.","wordpress-seo"),benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
(0,f.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Ls(),upsellButtonText:(0,f.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
(0,f.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:t.buyLink,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,f.__)("1 year free support and updates included!","wordpress-seo")});uo.propTypes={buyLink:o().string.isRequired};const po=uo,mo=()=>{const[t,,,s,a]=(0,Kt.useToggleState)(!1),r=(0,n.useContext)(d.LocationContext),{locationContext:o}=(0,d.useRootContext)(),i=(0,Kt.useSvgAria)(),l=wpseoAdminL10n["sidebar"===r.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,e.createElement)(e.Fragment,null,t&&(0,e.createElement)(R,{title:(0,f.__)("Add related keyphrases","wordpress-seo"),onRequestClose:a,additionalClassName:"",id:"yoast-additional-keyphrases-modal",className:`${S} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,e.createElement)(x,null,(0,e.createElement)(po,{buyLink:(0,fs.addQueryArgs)(l,{context:o})}))),"sidebar"===r&&(0,e.createElement)(F,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,f.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:K.colors.$color_grey_medium_dark},onClick:s},(0,e.createElement)("div",{className:"yst-root"},(0,e.createElement)(Kt.Badge,{size:"small",variant:"upsell"},(0,e.createElement)(Is,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...i})))),"metabox"===r&&(0,e.createElement)("div",{className:"yst-root"},(0,e.createElement)(v,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:s},(0,e.createElement)(k.SvgIcon,{icon:"plus",color:K.colors.$color_grey_medium_dark}),(0,e.createElement)(v.Text,null,(0,f.__)("Add related keyphrase","wordpress-seo")),(0,e.createElement)(Kt.Badge,{size:"small",variant:"upsell"},(0,e.createElement)(Is,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...i}),(0,e.createElement)("span",null,"Premium")))))};var ho,go,fo,yo,wo,bo,Eo,vo,ko,_o,To,xo,So,Co,Ro,Io,Lo,Po,Ao,Mo,Fo,qo,Do,Oo,No,$o,Wo,Bo,Uo,zo,Ko,Ho,Yo,jo,Vo,Zo,Go,Qo,Xo,Jo,ei,ti,si,ni,ai,ri,oi;function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},ii.apply(this,arguments)}const li=t=>e.createElement("svg",ii({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},t),ho||(ho=e.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),go||(go=e.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),fo||(fo=e.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),yo||(yo=e.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),wo||(wo=e.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),bo||(bo=e.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),Eo||(Eo=e.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),vo||(vo=e.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),ko||(ko=e.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),_o||(_o=e.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),To||(To=e.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),xo||(xo=e.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),So||(So=e.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Co||(Co=e.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Ro||(Ro=e.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Io||(Io=e.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Lo||(Lo=e.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),Po||(Po=e.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),Ao||(Ao=e.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),Mo||(Mo=e.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),Fo||(Fo=e.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),qo||(qo=e.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),Do||(Do=e.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),Oo||(Oo=e.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),No||(No=e.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),$o||($o=e.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Wo||(Wo=e.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),Bo||(Bo=e.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Uo||(Uo=e.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),zo||(zo=e.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Ko||(Ko=e.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Ho||(Ho=e.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Yo||(Yo=e.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),jo||(jo=e.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Vo||(Vo=e.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Zo||(Zo=e.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Go||(Go=e.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Qo||(Qo=e.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Xo||(Xo=e.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),Jo||(Jo=e.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),ei||(ei=e.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),ti||(ti=e.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),si||(si=e.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),ni||(ni=e.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),ai||(ai=e.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),ri||(ri=e.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),oi||(oi=e.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),ci=(0,g.compose)([(0,h.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,h.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),di=ci,ui=({children:t,id:s,hasIcon:n=!0,title:a,image:r=null,isAlertDismissed:o,onDismissed:i})=>o?null:(0,e.createElement)("div",{id:s,className:"notice-yoast yoast is-dismissible"},(0,e.createElement)("div",{className:"notice-yoast__container"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"notice-yoast__header"},n&&(0,e.createElement)("span",{className:"yoast-icon"}),(0,e.createElement)("h2",{className:"notice-yoast__header-heading"},a)),(0,e.createElement)("p",null,t)),r&&(0,e.createElement)(r,{height:"60"})),(0,e.createElement)("button",{type:"button",className:"notice-dismiss",onClick:i},(0,e.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,f.__)("Dismiss this notice.","wordpress-seo"))));ui.propTypes={children:o().node.isRequired,id:o().string.isRequired,hasIcon:o().bool,title:o().any.isRequired,image:o().elementType,isAlertDismissed:o().bool.isRequired,onDismissed:o().func.isRequired};const pi=di(ui),mi=({store:t="yoast-seo/editor",image:s=null,title:n,promoId:a,alertKey:r,children:o,...i})=>(0,h.select)(t).isPromotionActive(a)&&(0,e.createElement)(pi,{alertKey:r,store:t,id:r,title:n,image:s,...i},o);mi.propTypes={store:o().string,image:o().elementType,title:o().any.isRequired,promoId:o().string.isRequired,alertKey:o().string.isRequired,children:o().node};const hi=({store:t="yoast-seo/editor",location:s="sidebar",...a})=>{const r=(0,h.useSelect)((e=>e(t).getIsPremium()),[t]),o=(0,h.useSelect)((e=>e(t).selectLinkParams()),[t]),i="sidebar"===s?(0,f.sprintf)(/* translators: %1$s expands to YOAST SEO PREMIUM */
(0,f.__)("BLACK FRIDAY SALE: %1$s","wordpress-seo"),"YOAST SEO PREMIUM"):(0,n.createInterpolateElement)((0,f.sprintf)(/* translators: %1$s expands to YOAST SEO PREMIUM, %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
(0,f.__)("BLACK FRIDAY SALE: %1$s %2$sBuy now!%3$s","wordpress-seo"),"YOAST SEO PREMIUM","<a>","</a>"),{a:(0,e.createElement)("a",{href:(0,fs.addQueryArgs)("https://yoa.st/black-friday-sale",o),target:"_blank",rel:"noreferrer"})});return r?null:(0,e.createElement)(mi,{id:`black-friday-2023-promotion-${s}`,promoId:"black-friday-2023-promotion",alertKey:"black-friday-2023-promotion",store:t,title:i,image:Image,...a},(0,e.createElement)("span",{className:"yoast-bf-sale-badge"},(0,f.__)("30% OFF!","wordpress-seo")," "),"sidebar"===s&&(0,e.createElement)("a",{className:"yst-block yst--mb-[1em]",href:(0,fs.addQueryArgs)("https://yoa.st/black-friday-sale",o),target:"_blank",rel:"noreferrer"},(0,f.__)("Buy now!","wordpress-seo")))};hi.propTypes={store:o().string,location:o().oneOf(["sidebar","metabox"])};const gi=t=>s=>!(()=>{var e,t;const s=(0,h.select)("yoast-seo/editor").getIsPremium(),n=(0,h.select)("yoast-seo/editor").getWarningMessage();return(s&&null!==(e=null===(t=(0,h.select)("yoast-seo-premium/editor"))||void 0===t?void 0:t.getMetaboxWarning())&&void 0!==e?e:[]).length>0||n.length>0})()&&(0,e.createElement)(t,{...s}),fi=gi((()=>{const t=(0,h.useSelect)((e=>e("yoast-seo/editor").selectLinkParams()),[]),s=(0,f.sprintf)(/* translators: %1$s expands to 'WooCommerce'. */
(0,f.__)("Is your %1$s store ready for Black Friday?","wordpress-seo"),"WooCommerce");return(0,e.createElement)(mi,{id:"black-friday-2023-product-editor-checklist",alertKey:"black-friday-2023-product-editor-checklist",promoId:"black-friday-2023-checklist",store:"yoast-seo/editor",title:s,image:li},(0,n.createInterpolateElement)((0,f.sprintf)(/* translators: %1$s expands to a 'strong' start tag, %2$s to a 'strong' end tag. */
(0,f.__)("The Yoast %1$sultimate Black Friday checklist%2$s helps you prepare in time, so you can boost your results during this sale.","wordpress-seo"),"<strong>","</strong>"),{strong:(0,e.createElement)("strong",null)})," ",(0,e.createElement)("a",{href:(0,fs.addQueryArgs)("https://yoa.st/black-friday-checklist",t),target:"_blank",rel:"noreferrer"},(0,f.__)("Get the checklist and start optimizing now!","wordpress-seo")))})),yi=gi(hi);function wi({settings:t}){const s=(0,h.useSelect)((e=>e("yoast-seo/editor").getIsTerm()),[]),r=(0,h.useSelect)((e=>e("yoast-seo/editor").getIsProduct()),[])&&window.wpseoScriptData&&"1"===window.wpseoScriptData.isWooCommerceActive;return(0,e.createElement)(n.Fragment,null,Ys()&&(0,e.createElement)(ao,null),(0,e.createElement)(a.Fill,{name:"YoastMetabox"},(0,e.createElement)(Ks,{key:"warning",renderPriority:1},(0,e.createElement)(Zt,null)),(0,e.createElement)(Ks,{key:"time-constrained-notification",renderPriority:2},r&&(0,e.createElement)(fi,null),(0,e.createElement)(yi,{image:null,hasIcon:!1,location:"metabox"})),t.isKeywordAnalysisActive&&(0,e.createElement)(Ks,{key:"keyword-input",renderPriority:8},(0,e.createElement)(Ct.KeywordInput,{isSEMrushIntegrationActive:t.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,e.createElement)(a.Fill,{name:"YoastRelatedKeyphrases"},(0,e.createElement)(Ja,null))),(0,e.createElement)(Ks,{key:"search-appearance",renderPriority:9},(0,e.createElement)(Xt,{id:"yoast-snippet-editor-metabox",title:(0,f.__)("Search appearance","wordpress-seo"),initialIsOpen:!0},(0,e.createElement)(Vt,{hasPaperStyle:!1}))),t.isContentAnalysisActive&&(0,e.createElement)(Ks,{key:"readability-analysis",renderPriority:10},(0,e.createElement)(Ct.ReadabilityAnalysis,{shouldUpsell:t.shouldUpsell})),t.isKeywordAnalysisActive&&(0,e.createElement)(Ks,{key:"seo-analysis",renderPriority:20},(0,e.createElement)(n.Fragment,null,(0,e.createElement)(Ct.SeoAnalysis,{shouldUpsell:t.shouldUpsell,shouldUpsellWordFormRecognition:t.isWordFormRecognitionActive}),t.shouldUpsell&&(0,e.createElement)(co,{location:"metabox"}))),t.isInclusiveLanguageAnalysisActive&&(0,e.createElement)(Ks,{key:"inclusive-language-analysis",renderPriority:21},(0,e.createElement)(Ct.InclusiveLanguageAnalysis,null)),t.isKeywordAnalysisActive&&(0,e.createElement)(Ks,{key:"additional-keywords-upsell",renderPriority:22},t.shouldUpsell&&(0,e.createElement)(mo,null)),t.isKeywordAnalysisActive&&t.isWincherIntegrationActive&&(0,e.createElement)(Ks,{key:"wincher-seo-performance",renderPriority:23},(0,e.createElement)(St,{location:"metabox"})),t.shouldUpsell&&!s&&(0,e.createElement)(Ks,{key:"internal-linking-suggestions-upsell",renderPriority:25},(0,e.createElement)(Us,null)),t.isCornerstoneActive&&(0,e.createElement)(Ks,{key:"cornerstone",renderPriority:30},(0,e.createElement)(It,null)),t.displayAdvancedTab&&(0,e.createElement)(Ks,{key:"advanced",renderPriority:40},(0,e.createElement)(Xt,{id:"collapsible-advanced-settings",title:(0,f.__)("Advanced","wordpress-seo")},(0,e.createElement)(ln,null))),t.displaySchemaSettings&&(0,e.createElement)(Ks,{key:"schema",renderPriority:50},(0,e.createElement)(Da,null)),(0,e.createElement)(Ks,{key:"social",renderPriority:-1},(0,e.createElement)(_a,{target:"wpseo-section-social"})),t.isInsightsEnabled&&(0,e.createElement)(Ks,{key:"insights",renderPriority:52},(0,e.createElement)(Rs,{location:"metabox"}))))}wi.propTypes={settings:o().object.isRequired};const bi=(0,g.compose)([(0,h.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))])(wi);function Ei({target:t,store:s,theme:n}){return(0,e.createElement)(ka,{target:t},(0,e.createElement)(m,{store:s,theme:n}),(0,e.createElement)(bi,{store:s,theme:n}))}Ei.propTypes={target:o().string.isRequired,store:o().object,theme:o().object};const vi=[];let ki=null;class _i extends n.Component{constructor(e){super(e),this.state={registeredComponents:[]}}registerComponent(e,t){this.setState({registeredComponents:[...this.state.registeredComponents,{key:e,Component:t}]})}render(){return this.state.registeredComponents.map((({Component:t,key:s})=>(0,e.createElement)(t,{key:s})))}}function Ti(e,t){null===ki||null===ki.current?vi.push({key:e,Component:t}):ki.current.registerComponent(e,t)}const xi="wordproof/v1";async function Si(e,t,s,n=200){try{const a=await e();return!!a&&(a.status===n?t(a):s(a))}catch(e){}}async function Ci(e){try{return await Y()(e)}catch(e){return e.error&&e.status?e:e instanceof window.Response&&await e.json()}}const{get:Ri}=lodash,Ii=(e,t={})=>Ri(window,"wordproofSdk.data"+(e?`.${e}`:""),t);const{dispatch:Li}=wp.data;function Pi(){!function(){const{setIsAuthenticated:e,setSelectedPostTypes:t}=Li("wordproof"),s=Ii("popup_redirect_authentication_url"),n=Ii("popup_redirect_settings_url");let a=null;const r=(e,t)=>{a=function(e,t,s="",n=800,a=680){const r=e.top.outerHeight/2+e.top.screenY-a/2,o=e.top.outerWidth/2+e.top.screenX-n/2;return e.open(t,s,`toolbar=no,\n\t\tlocation=no,\n\t\tdirectories=no,\n\t\tstatus=no,\n\t\tmenubar=no,\n\t\tresizable=no,\n\t\tcopyhistory=no,\n\t\twidth=${n},\n\t\theight=${a},\n\t\ttop=${r},\n\t\tleft=${o}`)}(window,e,t),a&&a.focus(),window.addEventListener("message",o,!1)},o=async e=>{const{data:t,source:s,origin:n}=e;if(n===Ii("origin")&&a===s)switch(t.type){case"wordproof:oauth:granted":!1===await c(t)&&await i("wordproof:oauth:failed",!1);break;case"wordproof:oauth:failed":await i("wordproof:oauth:failed",!1);break;case"wordproof:oauth:denied":await i("wordproof:oauth:denied",!1);break;case"wordproof:oauth:invalid_token":await i("wordproof:oauth:invalid_token",!1);break;case"wordproof:webhook:success":await i("wordproof:oauth:success",!0);break;case"wordproof:webhook:failed":await i("wordproof:webhook:failed",!1);break;case"wordproof:settings:updated":await i("wordproof:settings:updated"),await d(t);break;case"wordproof:oauth:destroy":await i("wordproof:oauth:destroy",!1);break;case"wordproof:oauth:retry":await i("wordproof:open_authentication",!1);break;case"wordproof:oauth:close":l()}},i=async(t,s=null)=>{l(),function(e){const t=new window.CustomEvent(e);window.dispatchEvent(t)}(t),!1===s&&(await(async()=>await Si((async()=>await(async()=>await Ci({path:`${xi}/oauth/destroy`,method:"POST"}))()),(e=>e),(()=>!1)))(),e(!1)),!0===s&&e(!0)},l=()=>{window.removeEventListener("message",o,!1),a.close()},c=async e=>{await Si((()=>(async e=>{const{state:t,code:s}=e;return await Ci({path:`${xi}/oauth/authenticate`,method:"POST",data:{state:t,code:s}})})(e)),(async e=>{const t={type:"wordproof:sdk:access-token",source_id:e.source_id};return a.postMessage(t,Ii("origin")),!0}),(async()=>!1))},d=async e=>{await Si((()=>(async e=>{const{settings:t}=e;return await Ci({path:`${xi}/settings`,method:"POST",data:{settings:t}})})(e)),(async()=>{const s=e.settings;return s.selectedPostTypes&&t(s.selectedPostTypes),!0}),(async()=>!1))};window.addEventListener("wordproof:open_authentication",(e=>{e.preventDefault(),r(s,"WordProof_Authentication")}),!1),window.addEventListener("wordproof:open_settings",(e=>{e.preventDefault(),r(n,"WordProof_Settings")}),!1)}()}const Ai=window.yoast.externals.redux,Mi=window.jQuery;var Fi=s.n(Mi);function qi(e){let t="";var s;return t=!1===function(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}i.noop,i.noop,i.noop;const{removeMarks:Di}=es.markers,{updateReplacementVariable:Oi,updateData:Ni,hideReplacementVariables:$i,setContentImage:Wi,setEditorDataContent:Bi,setEditorDataTitle:Ui,setEditorDataExcerpt:zi,setEditorDataImageUrl:Ki,setEditorDataSlug:Hi}=Ai.actions;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(t){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=Ti,function(t){const s=Ts();ki=(0,n.createRef)();const r={isRtl:s.isRtl};(0,n.render)((0,e.createElement)(a.SlotFillProvider,null,(0,e.createElement)(d.Root,{context:{locationContext:"classic-metabox"}},(0,e.createElement)(Ei,{target:"wpseo-metabox-root",store:t,theme:r})),(0,e.createElement)(_i,{ref:ki})),document.getElementById("wpseo-metabox-root")),vi.forEach((e=>{ki.current.registerComponent(e.key,e.Component)}))}(t),Ys()&&Pi()},window.yoast.EditorData=class{constructor(e,t,s="content"){this._refresh=e,this._store=t,this._tinyMceId=s,this._previousData={},this._previousEditorData={},this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e,t=[]){const s=this.getInitialData(e);var n,a;n=s,a=this._store,(0,i.forEach)(n,((e,t)=>{Wt.includes(t)||a.dispatch(Dt(t,e))})),this._store.dispatch($i(t)),this._previousEditorData.content=s.content,this._store.dispatch(Bi(s.content)),this._previousEditorData.contentImage=s.contentImage,this._store.dispatch(Wi(s.contentImage)),this.setImageInSnippetPreview(s.snippetPreviewImageURL||s.contentImage),this._previousEditorData.slug=s.slug,this._store.dispatch(Hi(s.slug)),this.updateReplacementData({target:{value:s.title}},"title"),this.updateReplacementData({target:{value:s.excerpt}},"excerpt"),this.updateReplacementData({target:{value:s.excerpt_only}},"excerpt_only"),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage(),this.subscribeToTinyMceEditor(),this.subscribeToSlug()}subscribeToTinyMceEditor(){const e=e=>{if((0,i.isString)(e)||(e=this.getContent()),this._previousEditorData.content===e)return;if(this._previousEditorData.content=e,this._store.dispatch(Bi(e)),this.featuredImageIsSet)return;const t=this.getContentImage(e);this._previousEditorData.contentImage!==t&&(this._previousEditorData.contentImage=t,this._store.dispatch(Wi(t)),this.setImageInSnippetPreview(t))};Fi()(document).on("tinymce-editor-init",((t,s)=>{s.id===this._tinyMceId&&(e(this.getContent()),["input","change","cut","paste"].forEach((t=>s.on(t,(0,i.debounce)(e,1e3)))))}));const t=document.getElementById("attachment_content");t&&(e(t.value),t.addEventListener("input",(t=>e(t.target.value))))}subscribeToSlug(){const e=e=>{this._previousEditorData.slug!==e&&(this._previousEditorData.slug=e,this._store.dispatch(Hi(e)),this._store.dispatch(Ni({slug:e})))},t=document.getElementById("slug");t&&t.addEventListener("input",(t=>e(t.target.value)));const s=document.getElementById("post_name");s&&s.addEventListener("input",(t=>e(t.target.value)));const n=document.getElementById("edit-slug-buttons");n&&new MutationObserver(((t,s)=>t.forEach((t=>{t.addedNodes.forEach((t=>{var n,a;if(null==t||null===(n=t.classList)||void 0===n||!n.contains("edit-slug"))return;const r=null===(a=document.getElementById("editable-post-name-full"))||void 0===a?void 0:a.innerText;r&&(e(r),s.disconnect(),this.subscribeToSlug())}))})))).observe(n,{childList:!0})}subscribeToSnippetPreviewImage(){if((0,i.isUndefined)(wp.media)||(0,i.isUndefined)(wp.media.featuredImage))return;Fi()("#postimagediv").on("click","#remove-post-thumbnail",(()=>{this.featuredImageIsSet=!1,this.setImageInSnippetPreview(this.getContentImage(this.getContent()))}));const e=wp.media.featuredImage.frame();var t,s,n;e.on("select",(()=>{const t=e.state().get("selection").first().attributes.url;t&&(this.featuredImageIsSet=!0,this.setImageInSnippetPreview(t))})),t=this._tinyMceId,s=["init"],n=()=>{const e=this.getContentImage(this.getContent()),t=this.getFeaturedImage()||e||"";this._store.dispatch(Wi(e)),this.setImageInSnippetPreview(t)},"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){const a=e.editor;a.id===t&&(0,i.forEach)(s,(function(e){a.on(e,n)}))}))}getFeaturedImage(){const e=Fi()("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}setImageInSnippetPreview(e){this._store.dispatch(Ki(e)),this._store.dispatch(Ni({snippetPreviewImageURL:e}))}getContentImage(e){if(this.featuredImageIsSet)return"";const t=es.languageProcessing.imageInText(e);if(0===t.length)return"";const s=Fi().parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}getTitle(){const e=document.getElementById("title")||document.getElementById("name");return e&&e.value||""}getExcerpt(e=!0){const t=document.getElementById("excerpt"),s=t&&t.value||"",n="ja"===function(){const e=Ts();return(0,i.get)(e,"contentLocale","en_US")}()?80:156;return""!==s||!1===e?s:function(e,t=156){return(e=(e=(0,Ft.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}(this.getContent(),n)}getSlug(){let e="";const t=document.getElementById("new-post-slug")||document.getElementById("slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}getContent(){return Di(qi(this._tinyMceId))}subscribeToElements(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}subscribeToInputElement(e,t){const s=document.getElementById(e);s&&s.addEventListener("input",(e=>{this.updateReplacementData(e,t)}))}updateReplacementData(e,t){let s=e.target.value;if("excerpt"===t&&""===s&&(s=this.getExcerpt()),this._previousEditorData[t]!==s){switch(this._previousEditorData[t]=s,t){case"title":this._store.dispatch(Ui(s));break;case"excerpt":this._store.dispatch(zi(s))}this._store.dispatch(Oi(t,s))}}isShallowEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e.hasOwnProperty(s)&&(!(s in t)||e[s]!==t[s]))return!1;return!0}refreshYoastSEO(){const e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}handleEditorChange(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(Oi("excerpt",e.excerpt)),this._store.dispatch(Oi("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL),this._previousData.slug!==e.slug&&this._store.dispatch(Hi(e.slug)),this._previousData.title!==e.title&&this._store.dispatch(Ui(e.title))}subscribeToStore(){this.subscriber=(0,i.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}getInitialData(e){e=function(e,t){if(!e.custom_taxonomies)return e;const s={};return(0,i.forEach)(e.custom_taxonomies,((e,t)=>{const{name:n,label:a,descriptionName:r,descriptionLabel:o}=function(e){const t=Bt(e);return{name:"ct_"+t,label:Ot(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:Ot(e+" description (custom taxonomy)")}}(t),i="string"==typeof e.name?(0,_.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,_.decodeHTML)(e.description):e.description;s[n]={value:i,label:a},s[r]={value:l,label:o}})),t.dispatch(function(e){return{type:"SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",updatedVariables:e}}(s)),(0,i.omit)({...e},"custom_taxonomies")}(e=function(e,t){return e.custom_fields?((0,i.forEach)(e.custom_fields,((e,s)=>{const{name:n,label:a}=function(e){return{name:"cf_"+Bt(e),label:Ot(e+" (custom field)")}}(s);t.dispatch(Dt(n,e,a))})),(0,i.omit)({...e},"custom_fields")):e}(e,this._store),this._store);const t=this.getContent(),s=this.getFeaturedImage();return{...e,title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:t,snippetPreviewImageURL:s,contentImage:this.getContentImage(t)}}getData(){return{...this._store.getState().snippetEditor.data,title:this.getTitle(),content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)}}}})()})();